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.

Numpad2

The 2 key on the numeric keypad.

Numpad2 = 95

Numpad3

The 3 key on the numeric keypad.

Numpad3 = 96

Numpad4

The 4 key on the numeric keypad.

Numpad4 = 97

Numpad5

The 5 key on the numeric keypad.

Numpad5 = 98

Numpad6

The 6 key on the numeric keypad.

Numpad6 = 99

Numpad7

The 7 key on the numeric keypad.

Numpad7 = 100

Numpad8

The 8 key on the numeric keypad.

Numpad8 = 101

Numpad9

The 9 key on the numeric keypad.

Numpad9 = 102

NumpadDecimal

The decimal point key on the numeric keypad.

NumpadDecimal = 103

NumpadDivide

The / key on the numeric keypad.

NumpadDivide = 104

NumpadMultiply

The * key on the numeric keypad.

NumpadMultiply = 105

NumpadSubtract

The - key on the numeric keypad.

NumpadSubtract = 106

NumpadAdd

The + key on the numeric keypad.

NumpadAdd = 107

NumpadEnter

The Enter key on the numeric keypad.

NumpadEnter = 108

NumpadEqual

The = key on the numeric keypad.

NumpadEqual = 109

ShiftLeft

The left Shift key.

ShiftLeft = 110

ControlLeft

The left Control key.

ControlLeft = 111

AltLeft

The left Alt key (Option on macOS).

AltLeft = 112

MetaLeft

The left Meta key (Command on macOS, Windows key on Windows).

MetaLeft = 113

ShiftRight

The right Shift key.

ShiftRight = 114

ControlRight

The right Control key.

ControlRight = 115

AltRight

The right Alt key (Option on macOS, AltGr on many layouts).

AltRight = 116

MetaRight

The right Meta key (Command on macOS, Windows key on Windows).

MetaRight = 117

ContextMenu

The context menu key.

ContextMenu = 118