< index < 2. Console < 2.3 Handling keyboard input | ===================================== 2.3.5 Key codes ===================================== |

TCOD_keycode_t is a libtcod specific code representing a key on the keyboard.
For python, replace TCODK by KEY: libtcod.KEY_NONE Possible values are :
When no key was pressed (see checkForKeypress) :

    TCODK_NONE

Special keys :

    TCODK_ESCAPE
    TCODK_BACKSPACE
    TCODK_TAB
    TCODK_ENTER
    TCODK_SHIFT
    TCODK_CONTROL
    TCODK_ALT
    TCODK_PAUSE
    TCODK_CAPSLOCK
    TCODK_PAGEUP
    TCODK_PAGEDOWN
    TCODK_END
    TCODK_HOME
    TCODK_UP
    TCODK_LEFT
    TCODK_RIGHT
    TCODK_DOWN
    TCODK_PRINTSCREEN
    TCODK_INSERT
    TCODK_DELETE
    TCODK_LWIN
    TCODK_RWIN
    TCODK_APPS
    TCODK_KPADD
    TCODK_KPSUB
    TCODK_KPDIV
    TCODK_KPMUL
    TCODK_KPDEC
    TCODK_KPENTER
    TCODK_F1
    TCODK_F2
    TCODK_F3
    TCODK_F4
    TCODK_F5
    TCODK_F6
    TCODK_F7
    TCODK_F8
    TCODK_F9
    TCODK_F10
    TCODK_F11
    TCODK_F12
    TCODK_NUMLOCK
    TCODK_SCROLLLOCK
    TCODK_SPACE

numeric keys :

    TCODK_0
    TCODK_1
    TCODK_2
    TCODK_3
    TCODK_4
    TCODK_5
    TCODK_6
    TCODK_7
    TCODK_8
    TCODK_9
    TCODK_KP0
    TCODK_KP1
    TCODK_KP2
    TCODK_KP3
    TCODK_KP4
    TCODK_KP5
    TCODK_KP6
    TCODK_KP7
    TCODK_KP8
    TCODK_KP9

Any other (printable) key :

    TCODK_CHAR

Codes starting with TCODK_KP represents keys on the numeric keypad (if available).