Keysyms
Keysyms, short for key symbols, are 32-bit identifiers used by the X Window System to represent the symbolic value of a key in keyboard input events. They sit between the hardware KeyCode (the physical key) and characters or actions, and are produced by the keyboard mapping managed by XKB. Applications read KeySyms from events or translate them to Unicode or other representations, often by comparing them with predefined constants such as XK_A, XK_Return, or XK_Left.
Keysyms cover both printable characters and a wide range of special keys. Printable ASCII characters typically
Keysyms are defined in the X11 families of headers (notably keysymdef.h) and are part of the X11