List of Keycodes
This is the reference page for keycodes used by behaviors. Use the table of contents (on the right or the top) for easy navigation.
Take extra notice of the spelling of the keycodes, especially the shorthand spelling. Otherwise, it will result in an elusive parsing error!
In the below tables, there are keycode pairs with similar names where one variant has a K_ prefix and another C_.
These variants correspond to similarly named usages from different HID usage pages,
namely the "keyboard/keypad" and "consumer" ones respectively.
In practice, some OS and applications might listen to only one of the variants. You can use the values in the compatibility columns below to assist you in selecting which one to use.
Keyboard
Letters
Numbers
Symbols / Punctuation
Control & Whitespace
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
ESCAPEESC | Escape | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RETURNENTERRET | Return (Enter) | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RETURN2RET2 | Return | ❌ | ❌ | ❌ | ❔ | ❔ | |
SPACE | Space | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
TAB | Tab | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
BACKSPACEBSPC | Backspace | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
DELETEDEL | Delete | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
INSERTINS | Insert | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ |
Navigation
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
HOME | Home | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
END | End | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
PAGE_UPPG_UP | Page Up | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
PAGE_DOWNPG_DN | Page Down | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
UP_ARROWUP | ⬆Up Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
DOWN_ARROWDOWN | ⬇Down Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
LEFT_ARROWLEFT | ⬅Left Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RIGHT_ARROWRIGHT | ⮕Right Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
K_APPLICATIONK_APPK_CONTEXT_MENUK_CMENU | Application (Context Menu) | ⭐ | ⭐ | ⭐ | ⭐ | ⭐1 |
Locks
F Keys
International
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
INTERNATIONAL_1INT1INT_RO | ろ (International 1) | ❌ | ⭐ | ❌ | ⭐1 | ❔ | |
INTERNATIONAL_2INT2INT_KATAKANAHIRAGANAINT_KANA | かな (International 2) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_3INT3INT_YEN | ¥ (International 3) | ❌ | ⭐ | ❌ | ⭐1 | ❔ | |
INTERNATIONAL_4INT4INT_HENKAN | 変換 (International 4) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_5INT5INT_MUHENKAN | 無変換 (International 5) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_6INT6INT_KPJPCOMMA | ,カンマ (International 6) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_7INT7 | International 7 | ❔ | ❌ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_8INT8 | International 8 | ❔ | ❌ | ❌ | ⭐ | ❔ | |
INTERNATIONAL_9INT9 | International 9 | ❔ | ❌ | ❌ | ⭐ | ❔ |
Language
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
LANGUAGE_1LANG1LANG_HANGEUL | 한/영 (Language 1) | ⭐ | ⭐ | ❌ | ⭐1 | ❔ | |
LANGUAGE_2LANG2LANG_HANJA | 한자 (Language 2) | ⭐ | ⭐ | ❌ | ⭐1 | ❔ | |
LANGUAGE_3LANG3LANG_KATAKANA | カタカナ (Language 3) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
LANGUAGE_4LANG4LANG_HIRAGANA | ひらがな (Language 4) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
LANGUAGE_5LANG5LANG_ZENKAKUHANKAKU | 半角/全角 (Language 5) | ❌ | ⭐ | ❌ | ⭐ | ❔ | |
LANGUAGE_6LANG6 | Language 6 | ❔ | ❌ | ❌ | ⭐ | ❔ | |
LANGUAGE_7LANG7 | Language 7 | ❔ | ❌ | ❌ | ⭐ | ❔ | |
LANGUAGE_8LANG8 | Language 8 | ❔ | ❌ | ❌ | ⭐ | ❔ | |
LANGUAGE_9LANG9 | Language 9 | ❔ | ❌ | ❌ | ⭐ | ❔ |
Miscellaneous
Modifiers
The Modifiers page includes further information.
Keypad
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
KP_NUMLOCKKP_NUMKP_NLCK | Numlock and Clear | ⭐ | ⭐ | ⭐ | ❔ | ❔ | |
KP_CLEAR | Clear | ❔ | ⭐ | ❌ | ❌ | ❌ | |
CLEAR2 | Clear | ❔ | ⭐ | ⭐ | ❔ | ❔ | |
KP_ENTER | Enter | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ |
Numbers
Symbols / Operations
Editing
Cut, Copy, Paste
| Names | Description | W | L | A | m | i | |
|---|---|---|---|---|---|---|---|
C_AC_CUT | Cut Consumer AC | ❌ | ⭐ | ❌ | ❌ | ❔ | |
K_CUT | Cut Keyboard | ❌ | ⭐ | ❌ | ⭐1 | ❔ | |
|