Share via


WdKey Enumeration

Specifies a keyboard character. Although uppercase and lowercase characters are designated by using different values in a character encoding map, they share a single constant in this enumeration.

Name

Value

Description

wdKey0

48

The 0 key.

wdKey1

49

The 1 key.

wdKey2

50

The 2 key.

wdKey3

51

The 3 key.

wdKey4

52

The 4 key.

wdKey5

53

The 5 key.

wdKey6

54

The 6 key.

wdKey7

55

The 7 key.

wdKey8

56

The 8 key.

wdKey9

57

The 9 key.

wdKeyA

65

The A key.

wdKeyAlt

1024

The ALT key.

wdKeyB

66

The B key.

wdKeyBackSingleQuote

192

The ` key.

wdKeyBackSlash

220

The \ key.

wdKeyBackspace

8

The BACKSPACE key.

wdKeyC

67

The C key.

wdKeyCloseSquareBrace

221

The ] key.

wdKeyComma

188

The , key.

wdKeyCommand

512

The Windows command key or Macintosh COMMAND key.

wdKeyControl

512

The CTRL key.

wdKeyD

68

The D key.

wdKeyDelete

46

The DELETE key.

wdKeyE

69

The E key.

wdKeyEnd

35

The END key.

wdKeyEquals

187

The = key.

wdKeyEsc

27

The ESC key.

wdKeyF

70

The F key.

wdKeyF1

112

The F1 key.

wdKeyF10

121

The F10 key.

wdKeyF11

122

The F11 key.

wdKeyF12

123

The F12 key.

wdKeyF13

124

The F13 key.

wdKeyF14

125

The F14 key.

wdKeyF15

126

The F15 key.

wdKeyF16

127

The F16 key.

wdKeyF2

113

The F2 key.

wdKeyF3

114

The F3 key.

wdKeyF4

115

The F4 key.

wdKeyF5

116

The F5 key.

wdKeyF6

117

The F6 key.

wdKeyF7

118

The F7 key.

wdKeyF8

119

The F8 key.

wdKeyF9

120

The F9 key.

wdKeyG

71

The G key.

wdKeyH

72

The H key.

wdKeyHome

36

The HOME key.

wdKeyHyphen

189

The - key.

wdKeyI

73

The I key.

wdKeyInsert

45

The INSERT key.

wdKeyJ

74

The J key.

wdKeyK

75

The K key.

wdKeyL

76

The L key.

wdKeyM

77

The M key.

wdKeyN

78

The N key.

wdKeyNumeric0

96

The 0 key.

wdKeyNumeric1

97

The 1 key.

wdKeyNumeric2

98

The 2 key.

wdKeyNumeric3

99

The 3 key.

wdKeyNumeric4

100

The 4 key.

wdKeyNumeric5

101

The 5 key.

wdKeyNumeric5Special

12

.

wdKeyNumeric6

102

The 6 key.

wdKeyNumeric7

103

The 7 key.

wdKeyNumeric8

104

The 8 key.

wdKeyNumeric9

105

The 9 key.

wdKeyNumericAdd

107

The + key on the numeric keypad.

wdKeyNumericDecimal

110

The . key on the numeric keypad.

wdKeyNumericDivide

111

The / key on the numeric keypad.

wdKeyNumericMultiply

106

The * key on the numeric keypad.

wdKeyNumericSubtract

109

The - key on the numeric keypad.

wdKeyO

79

The O key.

wdKeyOpenSquareBrace

219

The [ key.

wdKeyOption

1024

The mouse option key or Macintosh OPTION key.

wdKeyP

80

The P key.

wdKeyPageDown

34

The PAGE DOWN key.

wdKeyPageUp

33

The PAGE UP key.

wdKeyPause

19

The PAUSE key.

wdKeyPeriod

190

The . key.

wdKeyQ

81

The Q key.

wdKeyR

82

The R key.

wdKeyReturn

13

The ENTER or RETURN key.

wdKeyS

83

The S key.

wdKeyScrollLock

145

The SCROLL LOCK key.

wdKeySemiColon

186

The ; key.

wdKeyShift

256

The SHIFT key.

wdKeySingleQuote

222

The ' key.

wdKeySlash

191

The / key.

wdKeySpacebar

32

The SPACEBAR key.

wdKeyT

84

The T key.

wdKeyTab

9

The TAB key.

wdKeyU

85

The U key.

wdKeyV

86

The V key.

wdKeyW

87

The W key.

wdKeyX

88

The X key.

wdKeyY

89

The Y key.

wdKeyZ

90

The Z key.

wdNoKey

255

No key.