Enumeration MacOSKeyCodes

Enumeration Members

: 49

" "

-: 27
,: 43

,

;: 41

;

.: 47

.

': 39

'

[: 33

[

]: 30

]

/: 44

/

\: 42

\

`: 50

`

=: 24

=

a: 0

a

A: 0
Add: 69

NumPad +

Alt: 58
AltLeft: 58
AltRight: 61
ArrowDown: 125
ArrowLeft: 123
ArrowRight: 124
ArrowUp: 126
b: 11

b

B: 11
Backslash: 42
Backspace: 51

Backspace ← / ⌫

Labelled as Delete on Mac keyboards, this is actually a Backspace key.

Backtick: 50
c: 8

c

C: 8
CapsLock: 57

Caps Lock ⇪

Clear: 71

NumPad Clear ⌧

Comma: 43
Command: 55

Command ⌘

CommandLeft: 55
CommandRight: 55
Control: 59

ControlLeft: 59
ControlRight: 62

d: 2

d

D: 2
Dash: 27
Decimal: 65

NumPad .

Delete: 117
Digit0: 29

0

Digit1: 18

1

Digit2: 19

2

Digit3: 20

3

Digit4: 21

4

Digit5: 23

5

Digit6: 22

6

Digit7: 26

7

Digit8: 28

8

Digit9: 25

9

Divide: 75

NumPad /

Down: 125

e: 14

e

E: 14
End: 119

end

Enter: 36

Return ↵

This is actually the "Return" key for MacOS.

Equals: 24
Escape: 53

Escape ⎋

f: 3

f

F: 3
F1: 122

F1

F10: 109

F10

F11: 103

F11

F12: 111

F12

F13: 105

F13

F14: 107

F14

F15: 113

F15

F16: 106

F16

F17: 64

F17

F18: 79

F18

F19: 80

F19

F2: 120

F2

F20: 90

F20

F3: 99

F3

F4: 118

F4

F5: 96

F5

F6: 97

F6

F7: 98

F7

F8: 100

F8

F9: 101

F9

Fn: 63

fn

ForwardDelete: 117

Forward Delete ⌦

ForwardSlash: 44
FullStop: 47
g: 5

g

G: 5
h: 4

h

H: 4
Help: 114

Help / Insert

Home: 115

Home

i: 34

i

I: 34
Insert: 114
j: 38

j

J: 38
k: 40

k

K: 40
KeyA: 0
KeyB: 11
KeyC: 8
KeyD: 2
KeyE: 14
KeyF: 3
KeyG: 5
KeyH: 4
KeyI: 34
KeyJ: 38
KeyK: 40
KeyL: 37
KeyM: 46
KeyN: 45
KeyO: 31
KeyP: 35
KeyQ: 12
KeyR: 15
KeyS: 1
KeyT: 17
KeyU: 32
KeyV: 9
KeyW: 13
KeyX: 7
KeyY: 16
KeyZ: 6
l: 37

l

L: 37
Left: 123

LeftSquareBracket: 33
LineFeed: 52

Line Feed ␊

m: 46

m

M: 46
Meta: 55
Minus: 27
Multiply: 67

NumPad *

Mute: 74

Mute

n: 45

n

N: 45
o: 31

o

O: 31
Option: 58

OptionLeft: 58
OptionRight: 61

p: 35

p

P: 35
PageDown: 121

Page Down

PageUp: 116

Page Up

Period: 47
Plus: 69
q: 12

q

Q: 12
r: 15

r

R: 15
Return: 36
Right: 124

RightSquareBracket: 30
s: 1

s

S: 1
SectionSign: 10

§

SemiColon: 41
Shift: 56

ShiftLeft: 56
ShiftRight: 60

SingleQuote: 39
Space: 49
Spacebar: 49
Subtract: 78

NumPad -

t: 17

t

T: 17
Tab: 48

Tab ⇥

Tilde: 50
u: 32

u

U: 32
Up: 126

v: 9

v

V: 9
VolumeDown: 73

Volume Down

VolumeUp: 72

Volume Up

w: 13

w

W: 13
x: 7

x

X: 7
y: 16

y

Y: 16
z: 6

z

Z: 6