Keyboard Functions and Codes

The following table is a reference on keyboard functions from within Windows. You can use these functions with the Type command.

Function Decimal Comment/Information

Left mouse button

1

 

Right mouse button

2

 

Ctrl-Break

3

 

Middle mouse button

4

 

X1 mouse button

5

 

X2 mouse button

6

 

Backspace

8

 

Tab

8

 

Clear

12

5 on the keypad

Enter

13

 

Shift

16

 

Ctrl

17

 

Alt

18

 

Pause

19

 

Cap Lock

20

 

Escape

27

 

Space

32

 

Page Up

33

 

Page Down

34

 

End

35

 

Home

36

 

Left-arrow

37

 

Up-arrow

38

 

Right-arrow

39

 

Down-arrow

40

 

Select

41

 

Execute

43

 

Print Screen

44

 

Insert

45

 

Delete

46

 

Help key

47

 

0

48

 

1

49

 

2

50

 

3

51

 

4

52

 

5

53

 

6

54

 

7

55

 

8

56

 

9

57

 

A

65

 

B

66

 

C

67

 

D

68

 

E

69

 

F

70

 

G

71

 

H

72

 

I

73

 

J

74

 

K

75

 

L

76

 

M

77

 

N

78

 

O

79

 

P

80

 

Q

81

 

R

82

 

S

83

 

T

84

 

U

85

 

V

86

 

W

87

 

X

88

 

Y

89

 

Z

90

 

Left Windows key

91

 

Right Windows key

92

 

Application key

93

 

Sleep key

94

 

Keypad 0

96

 

Keypad 1

97

 

Keypad 2

98

 

Keypad 3

99

 

Keypad 4

100

 

Keypad 5

101

 

Keypad 6

102

 

Keypad 7

103

 

Keypad 8

104

 

Keypad 9

105

 

Keypad Asterisk (*)

106

 

Keypad plus sign (+)

107

 

Keypad Separator

108

 

Keypad minus sign (-)

109

 

Keypad period (.)

110

 

Keypad backward slash (/)

111

 

F1 key

112

 

F2 key

113

 

F3 key

114

 

F4 key

115

 

F5 key

116

 

F6 key

117

 

F7 key

118

 

F8 key

119

 

F9 key

120

 

F10 key

121

 

F11 key

122

 

F12 key

123

 

F13 key

124

 

F14 key

125

 

F15 key

126

 

F16 key

127

 

F17 key

128

 

F18 key

129

 

F19 key

130

 

F20 key

131

 

F21 key

132

 

F22 key

133

 

F23 key

134

 

F24 key

135

 

Num Lock

144

 

Scroll Lock

145

 

Left Shift

160

 

Right Shift

161

 

Left Ctrl

162

 

Right Ctrl

162

 

Left menu

164

 

Right menu

165

 

Browser Back key

166

Windows 2000 or later required

Browser Forward key

167

Windows 2000 or later required

Browser Refresh key

168

Windows 2000 or later required

Browser Stop key

169

Windows 2000 or later required

Browser Search key

170

Windows 2000 or later required

Browser Favorites key

171

Windows 2000 or later required

Browser Start and Home key

172

Windows 2000 or later required

Volume Mute key

173

Windows 2000 or later required

Volume Down key

174

Windows 2000 or later required

Volulme Up key

175

Windows 2000 or later required

CD Next Track key

176

Windows 2000 or later required

CD Previous Track key

177

Windows 2000 or later required

CD Stop Media key

178

Windows 2000 or later required

CD Play/Pause key

179

Windows 2000 or later required

Launch Mail key

180

Windows 2000 or later required

Media Select key

181

Windows 2000 or later required

Start Application 1 key

182

Windows 2000 or later required

Start Application 2 key

183

Windows 2000 or later required

;

186

Semicolon/colon

=

187

Equals/plus

,

188

Comma/less than

-

189

Minus/underscore

.

190

Period/greater than

/

191

Slash/question mark

'

192

Single open quote/tilde

[

219

Left square/brace

\

220

Back slash/pipe

]

221

Right square/brace

'

222

Single close quote/double quote

Play key

250

 

Zoom key

251