It's only happened to me once, so I haven't bothered to change it but at least on Linux Mint it's just Settings -> Power Management -> When the power button is pressed -> Do nothing. Problem solved! Bit of a waste of a good button, though and it doesn't look trivial to rebind (IE: not supported by the builtin Shortcuts GUI even though pressing the power button obviously elicits a flicker of the input box).