Keycodes

Here is the list of the available keycode in RMK.

When used in configuration files, all keycodes are case-insensitive.

Alphabetical keys

Keycode Aliases Usage
A A and a
B B and b
C C and c
D D and d
E E and e
F F and f
G G and g
H H and h
I I and i
J J and j
K K and k
L L and l
M M and m
N N and n
O O and o
P P and p
Q Q and q
R R and r
S S and s
T T and t
U U and u
V V and v
W W and w
X X and x
Y Y and y
Z Z and z

Numerical keys

Keycode Aliases Usage
Kc1 1 1 and !
Kc2 2 2 and @
Kc3 3 3 and #
Kc4 4 4 and $
Kc5 5 5 and %
Kc6 6 6 and ^
Kc7 7 7 and &
Kc8 8 8 and *
Kc9 9 9 and (
Kc0 0 0 and )

Punctation keys

Keycode Aliases Usage
Enter ent Enter
Escape esc Escape
Backspace bspc Backspace
Delete del Delete
Tab Tab
Space spc Spacebar
Minus mins, - - and _
Equal eql, = = and +
LeftBracket left_bracket, lbrc, [ [ and {
RightBracket right_bracket, rbrc, ] ] and }
Backslash bsls, \ \ and |
NonusHash nonus_hash, nuhs Non-US # and ~
Semicolon scln, ; ; and :
Quote quot, ' ' and "
Grave grv, ` ` and ~
Comma comm, , , and <
Dot . . and >
Slash slsh, / / and ?
NonusBackslash nonus_backslash, nubs Non-US \ and |

Modifier keys

Keycode Aliases Usage
LCtrl l_ctrl, leftctrl, left_ctrl, lctl Left Control
LShift l_shift, leftshift, left_shift, lsft Left Shift
LAlt l_alt, leftalt, left_alt, lopt Left Alt
LGui l_gui, leftgui, left_gui, lcmd, lwin Left GUI
RCtrl r_ctrl, rightctrl, right_ctrl, rctl Right Control
RShift r_shift, rightshift, right_shift, rsft Right Shift
RAlt r_alt, rightalt, right_alt, ropt Right Alt
RGui r_gui, rightgui, right_gui, rcmd, rwin Right GUI

Function keys

Keycode Aliases Usage
F1 F1
F2 F2
F3 F3
F4 F4
F5 F5
F6 F6
F7 F7
F8 F8
F9 F9
F10 F10
F11 F11
F12 F12
F13 F13
F14 F14
F15 F15
F16 F16
F17 F17
F18 F18
F19 F19
F20 F20
F21 F21
F22 F22
F23 F23
F24 F24

Lock keys

Keycode Aliases Usage
CapsLock caps_lock, caps Caps Lock
ScrollLock scroll_lock, scrl, brmd Scroll Lock or Brightness Down on macOS
NumLock num_lock, num Num Lock
LockingCapsLock locking_caps_lock, lcap Locking Caps Lock
LockingNumLock locking_num_lock, lnum Locking Num Lock
LockingScrollLock locking_scroll_lock, lscr Locking Scroll Lock

International keys

Keycode Aliases Usage
International1 international_1, int1 JIS \ and _
International2 international_2, int2 JIS Katana or Hiragana
International3 international_3, int3 JIS ¥ and `
International4 international_4, int4 JIS Henkan
International5 international_5, int5 JIS Muhenkan
International6 international_6, int6 JIS Numpad ,
International7 international_7, int7 International 7
International8 international_8, int8 International 8
International9 international_9, int9 International 9
Language1 language_1, lng1 Hangul/English
Language2 language_2, lng2 Hanja
Language3 language_3, lng3 JIS Katakana
Language4 language_4, lng4 JIS Hiragana
Language5 language_5, lng5 JIS Zenkaku/Hankaku
Language6 language_6, lng6 Language 6
Language7 language_7, lng7 Language 7
Language8 language_8, lng8 Language 8
Language9 language_9, lng9 Language 9

Special keys

Keycode Aliases Usage
No Ignore this key
Transparent TRNS, _ (you can repeat as many times as you like) Use the next lowest non-transparent key