Garry's Mod Wiki

KEY

Description

Values

KEY_FIRST0
KEY_NONE0
KEY_01Normal number 0 key
KEY_12Normal number 1 key
KEY_23Normal number 2 key
KEY_34Normal number 3 key
KEY_45Normal number 4 key
KEY_56Normal number 5 key
KEY_67Normal number 6 key
KEY_78Normal number 7 key
KEY_89Normal number 8 key
KEY_910Normal number 9 key
KEY_A11
KEY_B12
KEY_C13
KEY_D14
KEY_E15
KEY_F16
KEY_G17
KEY_H18
KEY_I19
KEY_J20
KEY_K21
KEY_L22
KEY_M23
KEY_N24
KEY_O25
KEY_P26
KEY_Q27
KEY_R28
KEY_S29
KEY_T30
KEY_U31
KEY_V32
KEY_W33
KEY_X34
KEY_Y35
KEY_Z36
KEY_PAD_037Keypad number 0 key
KEY_PAD_138Keypad number 1 key
KEY_PAD_239Keypad number 2 key
KEY_PAD_340Keypad number 3 key
KEY_PAD_441Keypad number 4 key
KEY_PAD_542Keypad number 5 key
KEY_PAD_643Keypad number 6 key
KEY_PAD_744Keypad number 7 key
KEY_PAD_845Keypad number 8 key
KEY_PAD_946Keypad number 9 key
KEY_PAD_DIVIDE47Keypad division/slash key (/)
KEY_PAD_MULTIPLY48Keypad asterisk key (*)
KEY_PAD_MINUS49Keypad minus key
KEY_PAD_PLUS50Keypad plus key
KEY_PAD_ENTER51Keypad enter key
KEY_PAD_DECIMAL52Keypad dot key (.)
KEY_LBRACKET53
KEY_RBRACKET54
KEY_SEMICOLON55
KEY_APOSTROPHE56
KEY_BACKQUOTE57
KEY_COMMA58
KEY_PERIOD59
KEY_SLASH60
KEY_BACKSLASH61
KEY_MINUS62
KEY_EQUAL63
KEY_ENTER64
KEY_SPACE65
KEY_BACKSPACE66
KEY_TAB67
KEY_CAPSLOCK68
KEY_NUMLOCK69
KEY_ESCAPE70
KEY_SCROLLLOCK71
KEY_INSERT72
KEY_DELETE73
KEY_HOME74
KEY_END75
KEY_PAGEUP76
KEY_PAGEDOWN77
KEY_BREAK78
KEY_LSHIFT79The left Shift key, has been seen to be triggered by Right Shift in PANEL:OnKeyCodePressed
KEY_RSHIFT80
KEY_LALT81
KEY_RALT82
KEY_LCONTROL83
KEY_RCONTROL84
KEY_LWIN85The left Windows key or the Command key on Mac OSX
KEY_RWIN86The right Windows key or the Command key on Mac OSX
KEY_APP87
KEY_UP88
KEY_LEFT89
KEY_DOWN90
KEY_RIGHT91
KEY_F192
KEY_F293
KEY_F394
KEY_F495
KEY_F596
KEY_F697
KEY_F798
KEY_F899
KEY_F9100
KEY_F10101
KEY_F11102
KEY_F12103
KEY_CAPSLOCKTOGGLE104
KEY_NUMLOCKTOGGLE105
KEY_LAST106
KEY_SCROLLLOCKTOGGLE106
KEY_COUNT107
KEY_XBUTTON_A114
KEY_XBUTTON_B115
KEY_XBUTTON_X116
KEY_XBUTTON_Y117
KEY_XBUTTON_LEFT_SHOULDER118
KEY_XBUTTON_RIGHT_SHOULDER119
KEY_XBUTTON_BACK120
KEY_XBUTTON_START121
KEY_XBUTTON_STICK1122
KEY_XBUTTON_STICK2123
KEY_XBUTTON_UP146
KEY_XBUTTON_RIGHT147
KEY_XBUTTON_DOWN148
KEY_XBUTTON_LEFT149
KEY_XSTICK1_RIGHT150
KEY_XSTICK1_LEFT151
KEY_XSTICK1_DOWN152
KEY_XSTICK1_UP153
KEY_XBUTTON_LTRIGGER154
KEY_XBUTTON_RTRIGGER155
KEY_XSTICK2_RIGHT156
KEY_XSTICK2_LEFT157
KEY_XSTICK2_DOWN158
KEY_XSTICK2_UP159