Hardware number codes of the keyboard


Here is a list with many keyboard keys and their respective number code (the integer number which corresponds to the key), the codes start at 0 and have the corresponding key in front of them. This may vary across different machines.

0 - 9: unknown

10: 1

11: 2

12: 3

13: 4

14: 5

15: 6

16: 7

17: 8

18: 9

19: 0

20: -

21: =

22: Backspace

23: Tab

24: q

25: w

26: e

27: r

28: t

29: y

30: u

31: i

32: o

33: p

34: ´

35: [

36: unknown

37: Ctrl

38: a

39: s

40: d

41: f

42: g

43: h

44: j

45: k

46: l

47: ç

48: ~

49: '

50: Right Shift

51: ]

52: z

53: x

54: c

55: v

56: b

57: n

58: m

59: ,

60: .

61: ;

62: Left Shift

63: *

64: unknown

65: Space

66: CapsLock

67: Windows

68: F2

69: F3

70: F4

71: F5

72: F6

73: F7

74: F8

75: F9

76: F10

77 - 94: unknown

95: F11

96: F12

Comments