get-key-code in key-event%
Gets the virtual key code for the key event. The virtual key code is either a character or a special key symbol, one of the following:
The special key symbols attempt to capture useful keys that have no standard ASCII representation. A few keys have standard representations that are not obvious:
#\space-- the space bar#\return-- the Enter or Return key (on all platforms), but not necessarily the Enter key near the numpad (which is reported as'numpad-enterif the platform distinguishes the two Enter keys)#\tab-- the tab key#\backspace-- the backspace key#\rubout-- the delete key
If a suitable special key symbol or ASCII representation is not
available, #\nul (the null character) is
reported.
Under X, a 'wheel-up or 'wheel-down event may be sent
to a window other than the one with the keyboard focus, because X
generates wheel events based on the location of the mouse pointer.
Under Windows, for key combinations involving Control without Alt, the key code
is computed as if the Shift key is not pressed. Under Mac OS X, for
key combinations involving Command, the key code is computed as if
neither the Shift key nor Option key is pressed. See also
get-other-shift-key-code.