CAPI now supports a portable way to detect key press and release gestures, by using
. This is different from using
, because it captures the key and modifiers pressed or released, not the character that they would generate. It should only be used where you require low level access to the keyboard input. See the description of
for the details.