Appendix A. Keyboard Keys and Key Code Values

[ LiB ]

Appendix A. Keyboard Keys and Key Code Values

The following tables list all of the keys on a standard keyboard and the corresponding ASCII key code. To look up your ASCII code, just look for your character or key on the left side of the table and match it with its code on the right side.

This table should be used in conjunction with Chapter 8, along with the isDown method in ActionScript.

Table Table A.1. Letters A to Z and Standard Numbers 0 to 9

Letter or number key

Key code

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

48

1

49

2

50

3

51

4

52

5

53

6

54

7

55

8

56

9

57


Table Table A.2. Keys on the Numeric Keypad

Numeric keypad key

Key code

Numpad 0

96

Numpad 1

97

Numpad 2

98

Numpad 3

99

Numpad 4

100

Numpad 5

101

Numpad 6

102

Numpad 7

103

Numpad 8

104

Numpad 9

105

Multiply

106

Add

107

Enter

108

Subtract

109

Decimal

110

Divide

111


Table Table A.3. Function Keys

Function key

Key code

F1

112

F2

113

F3

114

F4

115

F5

116

F6

117

F7

118

F8

119

F9

120

F10

121

F11

122

F12

123

F13

124

F14

125

F15

126


Table Table A.4. Other Keys

Key

Key code

Backspace

8

Tab

9

Clear

12

Enter

13

Shift

16

Control

17

Alt

18

Caps Lock

20

Esc

27

Spacebar

32

Page Up

33

Page Down

34

End

35

Home

36

Left Arrow

37

Up Arrow

38

Right Arrow

39

Down Arrow

40

Insert

45

Delete

46

Help

47

Num Lock

144

; :

186

= +

187

- _

189

/ ?

191

\Q ~

192

[ {

219

\

220

] }

221

'' '

222


[ LiB ]


Game Development with ActionScript
Game Development with ActionScript
ISBN: 1592001106
EAN: 2147483647
Year: 2004
Pages: 162
Authors: Lewis Moronta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net