I would like to use one of my hard keys to simulate a power button. For that key, I would like the following to happen:
1. When the device is off, pressing that assigned hard key just wakes up the device, but does nothing else.
2. When the device is on, that hard key acts according to its regular assignments.
Is this possible to do with Apt?