Key code values for osx¶
List of osx key code values, with corresponding osx key code
names
- 0 (0x0)
- Key name ANSI_A
- 1 (0x1)
- Key name ANSI_S
- 2 (0x2)
- Key name ANSI_D
- 3 (0x3)
- Key name ANSI_F
- 4 (0x4)
- Key name ANSI_H
- 5 (0x5)
- Key name ANSI_G
- 6 (0x6)
- Key name ANSI_Z
- 7 (0x7)
- Key name ANSI_X
- 8 (0x8)
- Key name ANSI_C
- 9 (0x9)
- Key name ANSI_V
- 10 (0xa)
- Key name ISO_Section
- 11 (0xb)
- Key name ANSI_B
- 12 (0xc)
- Key name ANSI_Q
- 13 (0xd)
- Key name ANSI_W
- 14 (0xe)
- Key name ANSI_E
- 15 (0xf)
- Key name ANSI_R
- 16 (0x10)
- Key name ANSI_Y
- 17 (0x11)
- Key name ANSI_T
- 18 (0x12)
- Key name ANSI_1
- 19 (0x13)
- Key name ANSI_2
- 20 (0x14)
- Key name ANSI_3
- 21 (0x15)
- Key name ANSI_4
- 22 (0x16)
- Key name ANSI_6
- 23 (0x17)
- Key name ANSI_5
- 24 (0x18)
- Key name ANSI_Equal
- 25 (0x19)
- Key name ANSI_9
- 26 (0x1a)
- Key name ANSI_7
- 27 (0x1b)
- Key name ANSI_Minus
- 28 (0x1c)
- Key name ANSI_8
- 29 (0x1d)
- Key name ANSI_0
- 30 (0x1e)
- Key name ANSI_RightBracket
- 31 (0x1f)
- Key name ANSI_O
- 32 (0x20)
- Key name ANSI_U
- 33 (0x21)
- Key name ANSI_LeftBracket
- 34 (0x22)
- Key name ANSI_I
- 35 (0x23)
- Key name ANSI_P
- 36 (0x24)
- Key name Return
- 37 (0x25)
- Key name ANSI_L
- 38 (0x26)
- Key name ANSI_J
- 39 (0x27)
- Key name ANSI_Quote
- 40 (0x28)
- Key name ANSI_K
- 41 (0x29)
- Key name ANSI_Semicolon
- 42 (0x2a)
- Key name ANSI_Backslash
- 43 (0x2b)
- Key name ANSI_Comma
- 44 (0x2c)
- Key name ANSI_Slash
- 45 (0x2d)
- Key name ANSI_N
- 46 (0x2e)
- Key name ANSI_M
- 47 (0x2f)
- Key name ANSI_Period
- 48 (0x30)
- Key name Tab
- 49 (0x31)
- Key name Space
- 50 (0x32)
- Key name ANSI_Grave
- 51 (0x33)
- Key name Delete
- 53 (0x35)
- Key name Escape
- 54 (0x36)
- Key name RightCommand
- 55 (0x37)
- Key name Command
- 56 (0x38)
- Key name Shift
- 57 (0x39)
- Key name CapsLock
- 58 (0x3a)
- Key name Option
- 59 (0x3b)
- Key name Control
- 60 (0x3c)
- Key name RightShift
- 61 (0x3d)
- Key name RightOption
- 62 (0x3e)
- Key name RightControl
- 63 (0x3f)
- Key name Function
- 64 (0x40)
- Key name F17
- 65 (0x41)
- Key name ANSI_KeypadDecimal
- 67 (0x43)
- Key name ANSI_KeypadMultiply
- 69 (0x45)
- Key name ANSI_KeypadPlus
- 71 (0x47)
- Key name ANSI_KeypadClear
- 72 (0x48)
- Key name VolumeUp
- 73 (0x49)
- Key name VolumeDown
- 74 (0x4a)
- Key name Mute
- 75 (0x4b)
- Key name ANSI_KeypadDivide
- 76 (0x4c)
- Key name ANSI_KeypadEnter
- 78 (0x4e)
- Key name ANSI_KeypadMinus
- 79 (0x4f)
- Key name F18
- 80 (0x50)
- Key name F19
- 81 (0x51)
- Key name ANSI_KeypadEquals
- 82 (0x52)
- Key name ANSI_Keypad0
- 83 (0x53)
- Key name ANSI_Keypad1
- 84 (0x54)
- Key name ANSI_Keypad2
- 85 (0x55)
- Key name ANSI_Keypad3
- 86 (0x56)
- Key name ANSI_Keypad4
- 87 (0x57)
- Key name ANSI_Keypad5
- 88 (0x58)
- Key name ANSI_Keypad6
- 89 (0x59)
- Key name ANSI_Keypad7
- 90 (0x5a)
- Key name F20
- 91 (0x5b)
- Key name ANSI_Keypad8
- 92 (0x5c)
- Key name ANSI_Keypad9
- 93 (0x5d)
- Key name JIS_Yen
- 95 (0x5f)
- Key name JIS_KeypadComma
- 96 (0x60)
- Key name F5
- 97 (0x61)
- Key name F6
- 98 (0x62)
- Key name F7
- 99 (0x63)
- Key name F3
- 100 (0x64)
- Key name F8
- 101 (0x65)
- Key name F9
- 103 (0x67)
- Key name F11
- 104 (0x68)
- Key name JIS_Kana
- 105 (0x69)
- Key name F13
- 106 (0x6a)
- Key name F16
- 107 (0x6b)
- Key name F14
- 109 (0x6d)
- Key name F10
- 110 (0x6e)
- Key name unnamed
- 111 (0x6f)
- Key name F12
- 113 (0x71)
- Key name F15
- 114 (0x72)
- Key name Help
- 115 (0x73)
- Key name Home
- 116 (0x74)
- Key name PageUp
- 117 (0x75)
- Key name ForwardDelete
- 118 (0x76)
- Key name F4
- 119 (0x77)
- Key name End
- 120 (0x78)
- Key name F2
- 121 (0x79)
- Key name PageDown
- 122 (0x7a)
- Key name F1
- 123 (0x7b)
- Key name LeftArrow
- 124 (0x7c)
- Key name RightArrow
- 125 (0x7d)
- Key name DownArrow
- 126 (0x7e)
- Key name UpArrow
- 255 (0xff)
- Key name unnamed