Wake up from the keypress and continue sampling the button state if it's long enought high/low , wake up else go back to sleep after the button is released.
Then it's configured to detect and wakeup on wrong edge of signal (rising/falling), or if not possible to configure such option you need to modify the hardware.