A keymap structure contains pointers to arrays which determine the translation from raw key codes to ANSI characters. struct KeyMap { UBYTE *km_LoKeyMapTypes; ULONG *km_LoKeyMap; UBYTE *km_LoCapsable; UBYTE *km_LoRepeatable; UBYTE *km_HiKeyMapTypes; ULONG *km_HiKeyMap; UBYTE *km_HiCapsable; UBYTE *km_HiRepeatable; }; lokeymap and highkeymap string output keys lokeymaptypes and hikeymaptypes capsable bit tables more about qualifiers repeatable bit tables