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.

W

The key labelled W on a US keyboard.

W = 23

X

The key labelled X on a US keyboard.

X = 24

Y

The key labelled Y on a US keyboard.

Y = 25

Z

The key labelled Z on a US keyboard.

Z = 26

Digit0

The 0 key in the number row.

Digit0 = 27

Digit1

The 1 key in the number row.

Digit1 = 28

Digit2

The 2 key in the number row.

Digit2 = 29

Digit3

The 3 key in the number row.

Digit3 = 30

Digit4

The 4 key in the number row.

Digit4 = 31

Digit5

The 5 key in the number row.

Digit5 = 32

Digit6

The 6 key in the number row.

Digit6 = 33

Digit7

The 7 key in the number row.

Digit7 = 34

Digit8

The 8 key in the number row.

Digit8 = 35

Digit9

The 9 key in the number row.

Digit9 = 36

F1

Function key F1.

F1 = 37

F2

Function key F2.

F2 = 38

F3

Function key F3.

F3 = 39

F4

Function key F4.

F4 = 40

F5

Function key F5.

F5 = 41

F6

Function key F6.

F6 = 42

F7

Function key F7.

F7 = 43

F8

Function key F8.

F8 = 44

F9

Function key F9.

F9 = 45

F10

Function key F10.

F10 = 46