Skip to main content

Key code reference

Keyboard endpoints use code strings such as KeyA, Enter and ControlLeft. Use this page to look up supported codes. Parameters, request examples, timing and limits are documented in OpenAPI.

Code format​

  • Codes are case-sensitive and follow KeyboardEvent.code naming. Do not send numeric keyCode, ASCII or character values such as 65, A, a or Ctrl.
  • Codes identify physical keys; the target layout, modifiers, lock state and input method determine characters. Main Digit1 and keypad Numpad1 are different keys.
  • Only the codes below are supported, not the full browser code set. Fn, media volume keys and F13–F24 are not listed. NonUSHash is a backend name; verify international keys against the target layout.

Choose an endpoint​

NeedOpenAPI endpoint reference
Tap, hold or release one keyPOST /api/v1/hid/events
One simultaneous key combinationPOST /api/v1/hid/shortcuts
Multiple key groups in orderPOST /api/v1/hid/paste

See OpenAPI for authentication and contract sources.

Complete supported codes​

There are 107 codes. Download the JSON code list for integration validation. If firmware versions differ, use HidKeyboardCode in the device's own /openapi.yaml. Punctuation labels assume a common US layout; labels are not API arguments.

Modifiers​

CodeKey
ControlLeftLeft Ctrl
ShiftLeftLeft Shift
AltLeftLeft Alt
MetaLeftLeft Windows / Command
ControlRightRight Ctrl
ShiftRightRight Shift
AltRightRight Alt / AltGr
MetaRightRight Windows / Command

Letters​

CodeKey
KeyAA
KeyBB
KeyCC
KeyDD
KeyEE
KeyFF
KeyGG
KeyHH
KeyII
KeyJJ
KeyKK
KeyLL
KeyMM
KeyNN
KeyOO
KeyPP
KeyQQ
KeyRR
KeySS
KeyTT
KeyUU
KeyVV
KeyWW
KeyXX
KeyYY
KeyZZ

Main digits​

CodeKey
Digit1Main digit 1
Digit2Main digit 2
Digit3Main digit 3
Digit4Main digit 4
Digit5Main digit 5
Digit6Main digit 6
Digit7Main digit 7
Digit8Main digit 8
Digit9Main digit 9
Digit0Main digit 0

Function keys​

CodeKey
F1F1
F2F2
F3F3
F4F4
F5F5
F6F6
F7F7
F8F8
F9F9
F10F10
F11F11
F12F12

Numeric keypad​

CodeKey
NumLockNum Lock
NumpadDivideKeypad divide
NumpadMultiplyKeypad multiply
NumpadSubtractKeypad subtract
NumpadAddKeypad add
NumpadEnterKeypad Enter
Numpad1Keypad 1
Numpad2Keypad 2
Numpad3Keypad 3
Numpad4Keypad 4
Numpad5Keypad 5
Numpad6Keypad 6
Numpad7Keypad 7
Numpad8Keypad 8
Numpad9Keypad 9
Numpad0Keypad 0
NumpadDecimalKeypad decimal
NumpadEqualKeypad equal

Editing, navigation, punctuation and other keys​

CodeKey
EnterMain Enter
EscapeEsc
BackspaceBackspace
TabTab
SpaceSpace
MinusMinus / underscore
EqualEqual / plus
BracketLeftLeft bracket / brace
BracketRightRight bracket / brace
BackslashBackslash / vertical bar
NonUSHashNon-US # / ~
SemicolonSemicolon / colon
QuoteSingle / double quote
BackquoteBackquote / tilde
CommaComma / less-than
PeriodPeriod / greater-than
SlashSlash / question mark
CapsLockCaps Lock
PrintScreenPrint Screen
ScrollLockScroll Lock
PausePause
InsertInsert
HomeHome
PageUpPage Up
DeleteDelete
EndEnd
PageDownPage Down
ArrowRightRight arrow
ArrowLeftLeft arrow
ArrowDownDown arrow
ArrowUpUp arrow
IntlBackslashExtra ISO backslash key
ContextMenuContext menu