Skip to content

Instantly share code, notes, and snippets.

@janhohenheim
Created February 16, 2023 16:13
Show Gist options
  • Select an option

  • Save janhohenheim/76ec639ef658a73dfecef2b50c21ab6c to your computer and use it in GitHub Desktop.

Select an option

Save janhohenheim/76ec639ef658a73dfecef2b50c21ab6c to your computer and use it in GitHub Desktop.
macOS ScanCodes
Escape: 0x35
F1: 0x7a
F2: 0x78
F3: 0x63
F4: 0x76
F5: 0x60
F6: 0x61
F7: 0x62
F8: 0x64
F9: 0x65
F10: 0x6d
F12: 0x6f
Grave: 0x32
Key1: 0x12
Key2: 0x13
Key3: 0x14
Key4: 0x15
Key5: 0x17
Key6: 0x16
Key7: 0x1a
Key8: 0x1c
Key9: 0x19
Key0: 0x1d
Minus: 0x1b
Equals: 0x18
Back: 0x33
Tab: 0x30
Q: 0xc
W: 0xd
E: 0xe
R: 0xf
T: 0x11
Y: 0x10
U: 0x20
I: 0x22
O: 0x1f
P: 0x23
LBracket: 0x21
RBracket: 0x1e
Backslash: 0x2a
A: 0x0
S: 0x1
D: 0x2
F: 0x3
G: 0x5
H: 0x4
J: 0x26
K: 0x28
L: 0x25
Semicolon: 0x29
Apostrophe: 0x27
Return: 0x24
LShift: 0x38
Z: 0x6
X: 0x7
C: 0x8
V: 0x9
B: 0xb
N: 0x2d
M: 0x2e
Comma: 0x2b
Period: 0x2f
Slash: 0x2c
RShift: 0x3c
LControl: 0x3b
LAlt: 0x3a
LWin: 0x37
Space: 0x31
RWin: 0x36
RAlt: 0x3d
Left: 0x7b
Up: 0x7e
Down: 0x7d
Right: 0x7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment