Skip to content

KeyCode

1 min read

Import: import system.window;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

This type spans several pages: part 1 · part 2 · part 3 · part 4 · part 5.

ArrowUp

The up arrow key.

ArrowUp = 71

PageUp

The Page Up key.

PageUp = 72

PageDown

The Page Down key.

PageDown = 73

Home

The Home key.

Home = 74

End

The End key.

End = 75

CapsLock

The Caps Lock key.

CapsLock = 76

ScrollLock

The Scroll Lock key.

ScrollLock = 77

NumLock

The Num Lock key.

NumLock = 78

PrintScreen

The Print Screen key.

PrintScreen = 79

Pause

The Pause key.

Pause = 80

Minus

The - key next to the number row.

Minus = 81

Equal

The = key next to the number row.

Equal = 82

BracketLeft

The [ key.

BracketLeft = 83

BracketRight

The ] key.

BracketRight = 84

Backslash

The \ key above Enter on a US keyboard.

Backslash = 85

Semicolon

The ; key.

Semicolon = 86

Quote

The ' key.

Quote = 87

Backquote

The ` key left of the number row.

Backquote = 88

Comma

The , key.

Comma = 89

Period

The . key.

Period = 90

Slash

The / key.

Slash = 91

IntlBackslash

The extra key next to the left Shift on ISO keyboards.

IntlBackslash = 92

Numpad0

The 0 key on the numeric keypad.

Numpad0 = 93

Numpad1

The 1 key on the numeric keypad.

Numpad1 = 94