Skip to main content

Extended Keycodes

Firmware only keycodes are keycodes that combine multiple keycodes from the standard HID Usage Tables to generate specific characters.

CombinationUsage NameKeycode Identifiers
Left Shift and Grave~KC_TILD
Left Shift and 1!KC_EXLM
Left Shift and 2@KC_AT
Left Shift and 3#KC_HASH
Left Shift and 4$KC_DLR
Left Shift and 5%KC_PERC
Left Shift and 6^KC_CIRC
Left Shift and 7&KC_AMPR
Left Shift and 8*KC_ASTR
Left Shift and 9(KC_LPRN
Left Shift and 0)KC_RPRN
Left Shift and Minus_KC_UNDS
Left Shift and Equal+KC_PLUS
Left Shift and [{KC_LCBR
Left Shift and ]}KC_RCBR
Left Shift and \|KC_PIPE
Left Shift and ;:KC_COLN
Left Shift and '"KC_DQUO KC_DQT
Left Shift and ,<KC_LT
Left Shift and .>KC_GT
Left Shift and /?KC_QUES
Left Shift and Non US #Non US TildeKC_NUTL
Left Shift and Non US \Non US PipeKC_NUPI

Table is still a work in progress. Refer to hid_keycodes.h and advanced_keycodes.h for a detailed list of keycodes.

Mod Keys​

Mod keys are special macros you can use to send a Modifier and a Key at the same time on a single keypress.

MacroUsage NameExample
S(KEY)Left Shift + KeyS(KC_1)
LALT(KEY)Left ALT + KeyLALT(KC_TAB)
RALT(KEY)Right ALT + KeyRALT(KC_TAB)
LCTL(KEY)Left CTL + KeyLCTL(KC_C)
RCTL(KEY)Right CTL + KeyRCTL(KC_C)
LSFT(KEY)Left Shift + KeyLSFT(KC_1)
RSFT(KEY)Right Shift + KeyLALT(KC_1)
LGUI(KEY)Left GUI + KeyLGUI(KC_1)
RGUI(KEY)Right GUI + KeyRGUI(KC_1)