A callback that will be invoked when a key is pressed.
the device.
TRUE if the key is being pressed, FALSE if being released.
the hardware code for the key.
the keysym for the key.
a bitflag indicating which key modifiers are active.
the text corresponding to the keypress.
A callback that will be invoked when a key is pressed.