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 )

Keypad keys

Keycode Aliases Usage
KpSlash kp_slash, psls Keypad /
KpAsterisk kp_asterisk, past Keypad *
KpMinus kp_minus, pmns Keypad -
KpPlus kp_plus, ppls Keypad +
KpEnter kp_enter, pent Keypad Enter
Kp1 kp_1 Keypad 1
Kp2 kp_2 Keypad 2
Kp3 kp_3 Keypad 3
Kp4 kp_4 Keypad 4
Kp5 kp_5 Keypad 5
Kp6 kp_6 Keypad 6
Kp7 kp_7 Keypad 7
Kp8 kp_8 Keypad 8
Kp9 kp_9 Keypad 9
Kp0 kp_0 Keypad 0
KpDot kp_dot, pdot Keypad .
KpComma kp_comma, pcmm Keypad ,
KpEqual kp_equal, peql Keypad =
KpEqualAs400 kp_equal_as400 Keypad = (AS/400)

Punctuation 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
CapsWordToggle caps_word, cword Activate Caps Lock for next word only
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

Consumer keys

Keycode Aliases Usage
AudioMute audio_mute, mute Audio Mute
AudioVolUp audio_vol_up, volu Audio Volume Up
AudioVolDown audio_vol_down, vold Audio Volume Down
MediaNextTrack media_next_track, mnxt Media Next Track
MediaPrevTrack media_prev_track, mprv Media Previous Track
MediaStop media_stop, mstp Media Stop
MediaPlayPause media_play_pause, mply Media Play / Pause
MediaFastForward media_fast_forward, mffd Media Fast Forward
MediaRewind media_rewind, mrwd Media Rewind
MediaSelect media_select, msel Media Select / Record
MediaEject media_eject, ejct Media Eject
Mail Open Email Client
Calculator calc Open Calculator
MyComputer my_computer, mycm Open “My Computer” / File Explorer
WwwSearch www_search, wsch Browser Search
WwwHome www_home, whom Browser Home
WwwBack www_back, wbak Browser Back
WwwForward www_forward, wfwd Browser Forward
WwwStop www_stop, wstp Browser Stop
WwwRefresh www_refresh, wref Browser Refresh
WwwFavorites www_favorites, wfav Browser Bookmarks / Favorites
BrightnessUp brightness_up, briu Screen Brightness Up
BrightnessDown brightness_down, brid Screen Brightness Down
ControlPanel control_panel, cpnl Open Control Panel
Assistant asst Open OS Assistant (Cortana / Google Assistant / Siri)
MissionControl mission_control, mctl macOS Mission Control
Launchpad lpad macOS Launchpad
Keycode Aliases Usage
PrintScreen print_screen, pscr Print Screen
ScrollLock scroll_lock, scrl, brmd Scroll Lock / macOS brightness toggle
Pause paus, brk, brmu Pause / Break
Insert ins Insert
Home Home
PageUp page_up, pgup Page Up
Delete del Delete
End End
PageDown page_down, pgdn Page Down
Right rght Right arrow
Left Left arrow
Down Down arrow
Up Up arrow
Execute exec Execute
Help Help
Menu Application/Menu key
Select slct Select
Stop Stop
Again agin Again / Redo
Undo Undo
Cut Cut
Copy Copy
Paste pste Paste
Find Find
Clear clr Clear
Prior prir Prior / Previous
Return retn Return (alias of Enter)
Separator sepr Separator (numeric/document use)
Out Out
Oper Oper
ClearAgain clear_again, clag Clear Again
Crsel crsl Cursor Select
Exsel exsl Extend Selection

Mouse keys

Keycode Aliases Usage
MouseUp mousecursorup, mouse_cursor_up, ms_up Move mouse cursor up
MouseDown mousecursordown, mouse_cursor_down, ms_down Move mouse cursor down
MouseLeft mousecursorleft, mouse_cursor_left, ms_left Move mouse cursor left
MouseRight mousecursorright, mouse_cursor_right, ms_right Move mouse cursor right
MouseBtn1 mouse_btn_1, mousebutton1, mouse_button_1, ms_btn1 Mouse button 1 (left)
MouseBtn2 mouse_btn_2, mousebutton2, mouse_button_2, ms_btn2 Mouse button 2 (right)
MouseBtn3 mouse_btn_3, mousebutton3, mouse_button_3, ms_btn3 Mouse button 3 (middle)
MouseBtn4 mouse_btn_4, mousebutton4, mouse_button_4, ms_btn4 Mouse button 4
MouseBtn5 mouse_btn_5, mousebutton5, mouse_button_5, ms_btn5 Mouse button 5
MouseBtn6 mouse_btn_6, mousebutton6, mouse_button_6, ms_btn6 Mouse button 6
MouseBtn7 mouse_btn_7, mousebutton7, mouse_button_7, ms_btn7 Mouse button 7
MouseBtn8 mouse_btn_8, mousebutton8, mouse_button_8, ms_btn8 Mouse button 8
MouseWheelUp mouse_wheel_up, ms_whlu Mouse wheel up
MouseWheelDown mouse_wheel_down, ms_whld Mouse wheel down
MouseWheelLeft mouse_wheel_left, ms_whll Mouse wheel left
MouseWheelRight mouse_wheel_right, ms_whlr Mouse wheel right
MouseAccel0 mouse_accel_0, mouseacceleration0, mouse_acceleration_0, ms_acl0 Mouse acceleration level 0
MouseAccel1 mouse_accel_1, mouseacceleration1, mouse_acceleration_1, ms_acl1 Mouse acceleration level 1
MouseAccel2 mouse_accel_2, mouseacceleration2, mouse_acceleration_2, ms_acl2 Mouse acceleration level 2

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