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.
warning
Take extra notice of the spelling of the keycodes, especially the shorthand spelling. Otherwise, it will result in an elusive parsing error!
Keyboard vs. Consumer keycodes
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.
WWindows
LLinux
AAndroid
mmacOS
iiOS
Keyboard
Letters
Numbers
Symbols / Punctuation
Control & Whitespace
Names | Description | W | L | A | m | i | |
---|---|---|---|---|---|---|---|
ESCAPE ESC | Escape | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RETURN ENTER RET | Return (Enter) | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RETURN2 RET2 | Return | ❌ | ❌ | ❌ | ❔ | ❔ | |
SPACE | Space | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
TAB | Tab | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
BACKSPACE BSPC | Backspace | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
DELETE DEL | Delete | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
INSERT INS | Insert | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ |
Navigation
Names | Description | W | L | A | m | i | |
---|---|---|---|---|---|---|---|
HOME | Home | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
END | End | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
PAGE_UP PG_UP | Page Up | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
PAGE_DOWN PG_DN | Page Down | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
UP_ARROW UP | ⬆ Up Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
DOWN_ARROW DOWN | ⬇ Down Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
LEFT_ARROW LEFT | ⬅ Left Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
RIGHT_ARROW RIGHT | ⮕ Right Arrow | ⭐ | ⭐ | ⭐ | ⭐ | ⭐ | |
K_APPLICATION K_APP K_CONTEXT_MENU K_CMENU | Application (Context Menu) | ⭐ | ⭐ | ⭐ | ⭐ | ⭐1 |