It's unlikely to be able to "map" a key via software or anything, as the keyboard generally needs a power input before it's enabled.
Is the button physically broken? Or do you suspect a loose connection somewhere? Should be easy enough to fix a loose connection and, depending on the model, a replacement power button install shouldn't be overly difficult.