KeyCurrentState does the trick. You get a "bit field with bits set for each key that is currently depressed".
Now, does anyone know how I can turn off the key bit to indicate that I have dealt with it during system initialisation and don't want the system to handle it later. E.g. If the system was started by the user pressing the Calendar hard key (KeyBitHard1 masked on in the bit field), and I have dealt with it during Notification handling, then I don't want the system to start the Calendar app at the end of system initialisation. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
