---
title: Keyboard
slug: gpc/gpc-scripting-keyboard-constants
description: This is a list of all keyboard identifiers used with get_keyboard
icon: ◼️
docTags: 
createdAt: 2021-12-08T17:55:12.000Z
---

This is a list of all keyboard identifiers used with `get_keyboard`

| Name                     | Description                              | Value |
| ------------------------ | ---------------------------------------- | ----- |
| KEY\_A                   | This is the letter A on the keyboard     | 4     |
| KEY\_B                   | This is the letter B on the keyboard     | 5     |
| KEY\_C                   | This is the letter C on the keyboard     | 6     |
| KEY\_D                   | This is the letter D on the keyboard     | 7     |
| KEY\_E                   | This is the letter E on the keyboard     | 8     |
| KEY\_F                   | This is the letter F on the keyboard     | 9     |
| KEY\_G                   | This is the letter G on the keyboard     | 10    |
| KEY\_H                   | This is the letter H on the keyboard     | 11    |
| KEY\_I                   | This is the letter I on the keyboard     | 12    |
| KEY\_J                   | This is the letter J on the keyboard     | 13    |
| KEY\_K                   | This is the letter K on the keyboard     | 14    |
| KEY\_L                   | This is the letter L on the keyboard     | 15    |
| KEY\_M                   | This is the letter M on the keyboard     | 16    |
| KEY\_N                   | This is the letter N on the keyboard     | 17    |
| KEY\_O                   | This is the letter O on the keyboard     | 18    |
| KEY\_P                   | This is the letter P on the keyboard     | 19    |
| KEY\_Q                   | This is the letter Q on the keyboard     | 20    |
| KEY\_R                   | This is the letter R on the keyboard     | 21    |
| KEY\_S                   | This is the letter S on the keyboard     | 22    |
| KEY\_T                   | This is the letter T on the keyboard     | 23    |
| KEY\_U                   | This is the letter U on the keyboard     | 24    |
| KEY\_V                   | This is the letter V on the keyboard     | 25    |
| KEY\_W                   | This is the letter W on the keyboard     | 26    |
| KEY\_X                   | This is the letter X on the keyboard     | 27    |
| KEY\_Y                   | This is the letter Y on the keyboard     | 28    |
| KEY\_Z                   | This is the letter Z on the keyboard     | 29    |
| KEY\_1                   | This is the number 1 on the keyboard     | 30    |
| KEY\_2                   | This is the number 2 on the keyboard     | 31    |
| KEY\_3                   | This is the number 3 on the keyboard     | 32    |
| KEY\_4                   | This is the number 4 on the keyboard     | 33    |
| KEY\_5                   | This is the number 5 on the keyboard     | 34    |
| KEY\_6                   | This is the number 6 on the keyboard     | 35    |
| KEY\_7                   | This is the number 7 on the keyboard     | 36    |
| KEY\_8                   | This is the number 8 on the keyboard     | 37    |
| KEY\_9                   | This is the number 9 on the keyboard     | 38    |
| KEY\_0                   | This is the number 0 on the keyboard     | 39    |
| KEY\_ENTER               | This is ENTER on the keyboard            | 40    |
| KEY\_ESC                 | This is ESC on the keyboard              | 41    |
| KEY\_BACKSPACE           | This is BACKSPACE on the keyboard        | 42    |
| KEY\_TAB                 | This is TAB on the keyboard              | 43    |
| KEY\_SPACE               | This is SPACE on the keyboard            | 44    |
| KEY\_MINUS               | This is MINUS on the keyboard            | 45    |
| KEY\_EQUAL               | This is EQUAL on the keyboard            | 46    |
| KEY\_LEFTBRACE           | This is LEFTBRACE on the keyboard        | 47    |
| KEY\_RIGHTBRACE          | This is RIGHTBRACE on the keyboard       | 48    |
| KEY\_BACKSLASH           | This is BACKSLASH on the keyboard        | 49    |
| KEY\_HASHTILDE           | This is HASHTILDE on the keyboard        | 50    |
| KEY\_SEMICOLON           | This is SEMICOLON on the keyboard        | 51    |
| KEY\_APOSTROPHE          | This is APOSTROPHE on the keyboard       | 52    |
| KEY\_GRAVE               | This is GRAVE on the keyboard            | 53    |
| KEY\_COMMA               | This is COMMA on the keyboard            | 54    |
| KEY\_DOT                 | This is DOT on the keyboard              | 55    |
| KEY\_SLASH               | This is SLASH  on the keyboard           | 56    |
| KEY\_CAPSLOCK            | This is CAPSLOCK on the keyboard         | 57    |
| KEY\_F1                  | This is F1 on the keyboard               | 58    |
| KEY\_F2                  | This is F2 on the keyboard               | 59    |
| KEY\_F3                  | This is F3 on the keyboard               | 60    |
| KEY\_F4                  | This is F4 on the keyboard               | 61    |
| KEY\_F5                  | This is F5 on the keyboard               | 62    |
| KEY\_F6                  | This is F6 on the keyboard               | 63    |
| KEY\_F7                  | This is F7  on the keyboard              | 64    |
| KEY\_F8                  | This is F8 on the keyboard               | 65    |
| KEY\_F9                  | This is F9 on the keyboard               | 66    |
| KEY\_F10                 | This is F10 on the keyboard              | 67    |
| KEY\_F11                 | This is F11 on the keyboard              | 68    |
| KEY\_F12                 | This is F12  on the keyboard             | 69    |
| KEY\_SYSRQ               | This is SYSRQ on the keyboard            | 70    |
| KEY\_SCROLLLOCK          | This is SCROLLLOCK on the keyboard       | 71    |
| KEY\_PAUSE               | This is PAUSE on the keyboard            | 72    |
| KEY\_INSERT              | This is INSERT on the keyboard           | 73    |
| KEY\_HOME                | This is HOME  on the keyboard            | 74    |
| KEY\_PAGEUP              | This is PAGEUP on the keyboard           | 75    |
| KEY\_DELETE              | This is DELETE on the keyboard           | 76    |
| KEY\_END                 | This is END on the keyboard              | 77    |
| KEY\_PAGEDOWN            | This is PAGEDOWN on the keyboard         | 78    |
| KEY\_RIGHT               | This is RIGHT on the keyboard            | 79    |
| KEY\_LEFT                | This is LEFT  on the keyboard            | 80    |
| KEY\_DOWN                | This is DOWN on the keyboard             | 81    |
| KEY\_UP                  | This is UP on the keyboard               | 82    |
| KEY\_NUMLOCK             | This is NUMLOCK on the keyboard          | 83    |
| KEY\_KPSLASH             | This is KPSLASH on the keyboard          | 84    |
| KEY\_KPASTERISK          | This is KPASTERISK on the keyboard       | 85    |
| KEY\_KPMINUS             | This is KPMINUS on the keyboard          | 86    |
| KEY\_KPPLUS              | This is KPPLUS on the keyboard           | 87    |
| KEY\_KPENTER             | This is KPENTER on the keyboard          | 88    |
| KEY\_KP1                 | This is KP1 on the keyboard              | 89    |
| KEY\_KP2                 | This is KP2 on the keyboard              | 90    |
| KEY\_KP3                 | This is KP3 on the keyboard              | 91    |
| KEY\_KP4                 | This is KP4 on the keyboard              | 92    |
| KEY\_KP5                 | This is KP5 on the keyboard              | 93    |
| KEY\_KP6                 | This is KP6 on the keyboard              | 94    |
| KEY\_KP7                 | This is KP7 on the keyboard              | 95    |
| KEY\_KP8                 | This is KP8 on the keyboard              | 96    |
| KEY\_KP9                 | This is KP9 on the keyboard              | 97    |
| KEY\_KP0                 | This is KP0 on the keyboard              | 98    |
| KEY\_KPDOT               | This is KPDOT on the keyboard            | 99    |
| KEY\_102ND               | This is 102ND on the keyboard            | 100   |
| KEY\_COMPOSE             | This is COMPOSE on the keyboard          | 101   |
| KEY\_POWER               | This is POWER on the keyboard            | 102   |
| KEY\_KPEQUAL             | This is KPEQUAL on the keyboard          | 103   |
| KEY\_F13                 | This is F13 on the keyboard              | 104   |
| KEY\_F14                 | This is F14 on the keyboard              | 105   |
| KEY\_F15                 | This is F15 on the keyboard              | 106   |
| KEY\_F16                 | This is F16 on the keyboard              | 107   |
| KEY\_F17                 | This is F17 on the keyboard              | 108   |
| KEY\_F18                 | This is F18 on the keyboard              | 109   |
| KEY\_F19                 | This is F19 on the keyboard              | 110   |
| KEY\_F20                 | This is F20 on the keyboard              | 111   |
| KEY\_F21                 | This is F21 on the keyboard              | 112   |
| KEY\_F22                 | This is F22 on the keyboard              | 113   |
| KEY\_F23                 | This is F23 on the keyboard              | 114   |
| KEY\_F24                 | This is F24 on the keyboard              | 115   |
| KEY\_OPEN                | This is OPEN on the keyboard             | 116   |
| KEY\_HELP                | This is HELP on the keyboard             | 117   |
| KEY\_PROPS               | This is PROPS on the keyboard            | 118   |
| KEY\_FRONT               | This is FRONT on the keyboard            | 119   |
| KEY\_STOP                | This is STOP on the keyboard             | 120   |
| KEY\_AGAIN               | This is AGAIN on the keyboard            | 121   |
| KEY\_UNDO                | This is UNDO on the keyboard             | 122   |
| KEY\_CUT                 | This is CUT on the keyboard              | 123   |
| KEY\_COPY                | This is COPY on the keyboard             | 124   |
| KEY\_PASTE               | This is PASTE on the keyboard            | 125   |
| KEY\_FIND                | This is FIND on the keyboard             | 126   |
| KEY\_MUTE                | This is MUTE on the keyboard             | 127   |
| KEY\_VOLUMEUP            | This is VOLUMEUP on the keyboard         | 128   |
| KEY\_VOLUMEDOWN          | This is VOLUMEDOWN on the keyboard       | 129   |
| KEY\_KPCOMMA             | This is KPCOMMA on the keyboard          | 133   |
| KEY\_RO                  | This is RO on the keyboard               | 135   |
| KEY\_KATAKANAHIRAGANA    | This is KATAKANAHIRAGANA on the keyboard | 136   |
| KEY\_YEN                 | This is YEN on the keyboard              | 137   |
| KEY\_HENKAN              | This is HENKAN on the keyboard           | 138   |
| KEY\_MUHENKAN            | This is MUHENKAN on the keyboard         | 139   |
| KEY\_KPJPCOMMA           | This is KPIPCOMMA on the keyboard        | 140   |
| KEY\_HANGEUL             | This is HANGEUL on the keyboard          | 144   |
| KEY\_HANJA               | This is HANIA on the keyboard            | 145   |
| KEY\_KATAKANA            | This is KATAKANA on the keyboard         | 146   |
| KEY\_HIRAGANA            | This is HIRAGANA on the keyboard         | 147   |
| KEY\_ZENKAKUHANKAKU      | This is ZENKAKUHANKAKU on the keyboard   | 148   |
| KEY\_KPLEFTPAREN         | This is KPLEFTPAREN on the keyboard      | 182   |
| KEY\_KPRIGHTPAREN        | This is KPRIGHTPAREN on the keyboard     | 183   |
| KEY\_LEFTCTRL            | This is LEFTCTRL on the keyboard         | 224   |
| KEY\_LEFTSHIFT           | This is LEFTSHIFT on the keyboard        | 225   |
| KEY\_LEFTALT             | This is LEFTALT on the keyboard          | 226   |
| KEY\_LEFTMETA            | This is LEFT META on the keyboard        | 227   |
| KEY\_RIGHTCTRL           | This is RIGHTCTRL on the keyboard        | 228   |
| KEY\_RIGHTSHIFT          | This is RIGHTSHIFT on the keyboard       | 229   |
| KEY\_RIGHTALT            | This is RIGHTALT on the keyboard         | 230   |
| KEY\_RIGHTMETA           | This is RIGHTMETA on the keyboard        | 231   |
| KEY\_MEDIA\_PLAYPAUSE    | This is PLAYPAUSE on the keyboard        | 232   |
| KEY\_MEDIA\_STOPCD       | This is STOPCD on the keyboard           | 233   |
| KEY\_MEDIA\_PREVIOUSSONG | This is PREVIOUSSONG on the keyboard     | 234   |
| KEY\_MEDIA\_NEXTSONG     | This is NEXTSONG on the keyboard         | 235   |
| KEY\_MEDIA\_EJECTCD      | This is EJECTCD on the keyboard          | 236   |
| KEY\_MEDIA\_VOLUMEUP     | This is VOLUMEUP on the keyboard         | 237   |
| KEY\_MEDIA\_VOLUMEDOWN   | This is VOLUMEDOWN on the keyboard       | 238   |
| KEY\_MEDIA\_MUTE         | This is MUTE on the keyboard             | 239   |
| KEY\_MEDIA\_WWW          | This is WWW on the keyboard              | 240   |
| KEY\_MEDIA\_BACK         | This is BACK on the keyboard             | 241   |
| KEY\_MEDIA\_FORWARD      | This is FORWARD on the keyboard          | 242   |
| KEY\_MEDIA\_STOP         | This is STOP on the keyboard             | 243   |
| KEY\_MEDIA\_FIND         | This is FIND on the keyboard             | 244   |
| KEY\_MEDIA\_SCROLLUP     | This is SCROLLUP on the keyboard         | 245   |
| KEY\_MEDIA\_SCROLLDOWN   | This is SCROLLDOWN on the keyboard       | 246   |
| KEY\_MEDIA\_EDIT         | This is EDIT on the keyboard             | 247   |
| KEY\_MEDIA\_SLEEP        | This is SLEEP on the keyboard            | 248   |
| KEY\_MEDIA\_COFFEE       | This is COFFEE on the keyboard           | 249   |
| KEY\_MEDIA\_REFRESH      | This is REFRESH on the keyboard          | 250   |
| KEY\_MEDIA\_CALC         | This is CALC on the keyboard             | 251   |

## Modifiers

This is a list of all keyboard identifiers used with `get_modifiers`

| Name        | Description                    | Value |
| ----------- | ------------------------------ | ----- |
| MOD\_LCTRL  | This is LCTRL on the keyboard  | 1     |
| MOD\_LSHIFT | This is LSHIFT on the keyboard | 2     |
| MOD\_LALT   | This is LALT on the keyboard   | 4     |
| MOD\_LGUI   | This is LGUI on the keyboard   | 8     |
| MOD\_RCTRL  | This is RCTRL on the keyboard  | 16    |
| MOD\_RSHIFT | This is RSHIFT on the keyboard | 32    |
| MOD\_RALT   | This is RALT on the keyboard   | 64    |
| MOD\_RGUI   | This is RGUI on the keyboard   | 128   |

