Skip to content

Keyboard reference

Every identifier you can pass to Input.bind(), a scene's input property, or the query methods, grouped by category.

How naming works

Jygame recognises two kinds of keyboard identifiers:

  • Physical keys match KeyboardEvent.code — the key's position on the keyboard. They are independent of layout and case ("KeyW" is the physical W position, so on an AZERTY keyboard the key labelled Z still fires "KeyW"; "keyw" works too). Always use these for gameplay and movement.
  • Logical keys match KeyboardEvent.key — the character the keyboard actually produces, matched case-sensitively. Any single character is a valid logical key: "m", "M", "é", "1", ",". See Input for the full distinction.

This page lists every physical key Jygame recognises.

Letters

IdentifierKey
KeyAKeyZthe A–Z row, by position

Digits

IdentifierKey
Digit0Digit9the number row, by position

Modifiers

IdentifierKey
ShiftLeft / ShiftRightShift
ControlLeft / ControlRightControl
AltLeft / AltRightAlt / Option
MetaLeft / MetaRightMeta — ⌘ Command on macOS, ⊞ Windows key elsewhere

Editing & system

IdentifierKey
SpaceSpace
EnterEnter
EscapeEscape
TabTab
BackspaceBackspace
DeleteDelete
CapsLockCaps Lock
NumLockNum Lock
ScrollLockScroll Lock
PrintScreenPrint Screen
PausePause
IdentifierKey
ArrowUp / ArrowDown / ArrowLeft / ArrowRightarrow keys
Home / EndHome / End
PageUp / PageDownPage Up / Page Down

Function keys

IdentifierKey
F1F12F1–F12

Symbols

IdentifierKey
Minus-
Equal=
BracketLeft / BracketRight[ ]
Semicolon;
Quote'
Backquote`
Backslash\
Comma,
Period.
Slash/
IntlBackslashthe extra \ / < key next to left Shift (and on AZERTY the */µ key)

Numpad

IdentifierKey
Numpad0Numpad9numpad digits
NumpadAdd / NumpadSubtract+ -
NumpadMultiply / NumpadDivide* /
NumpadEnterEnter
NumpadDecimal. / ,

Other

IdentifierKey
ContextMenuthe menu key
InsertInsert
HelpHelp (rare)

Aliases

The short names below also resolve to physical keys (case-insensitive). They are kept for convenience and backwards compatibility; the Key*/Digit*/… forms above are the canonical names.

AliasResolves to
SHIFT / CTRL / ALT / METAthe left modifier key
UP / DOWN / LEFT / RIGHT, ARROW_UP / ARROW_DOWN / ARROW_LEFT / ARROW_RIGHTarrow keys
SPACE / ENTER / ESCAPE / TAB / BACKSPACE / DELETEthe same-named key
HOME / END / PAGE_UP / PAGE_DOWNHome / End / Page Up / Page Down
F1F12function keys
BACKTICK / MINUS / EQUAL / SEMICOLON / QUOTE / COMMA / PERIOD / SLASH / BACKSLASH / BRACKET_LEFT / BRACKET_RIGHTthe same-named symbol key
` - = ; ' , . / \ [ ]the punctuation characters themselves

Released under the GPL-3.0 License.