Accessibility

TechNote (Archived)

Director key codes

The following chart lists the numerical keyboard codes returned in Director. This keyboard code is the key's numerical value, not the American National Standards Institute (ANSI) value. For consistent keycode returns on localized versions of Director, developers should test which characters correspond to different keys on different keyboards. For more information about returning keycodes see How do I use KeyCode? (TechNote #14590).

Letters

Key

Code

Key

Code

A

0

N

45

B

11

O

31

C

8

P

35

D

2

Q

12

E

14

R

15

F

3

S

1

G

5

T

17

H

4

U

32

I

34

V

9

J

38

W

13

K

40

X

7

L

37

Y

16

M

46

Z

6

SpecialCharacters

Key

Code

Key

Code

`

50

'

39

,

43

[

33

.

47

]

30

/

44

\

42

;

41

Standard Numbers

Key

Code

Key

Code

0

29

5

23

1

18

6

22

2

19

7

26

3

20

8

28

4

21

9

25

Function Keys

Key

Code

Key

Code

F1

122

Scroll Lock

107

F2

120

Pause Break

76

F3

99

TAB

48

F4

118

SPACE

49

F5

96

ENTER

36**

F6

97

DELETE (small)

117

F7

98

END

119

F8

100

HOME

115

F9

101

PAGE UP

116

F10

109

PAGE DOWN

121

F11

103

BACKSPACE

51***

F12

111

Arrow Keys

Key

Code

Key

Code

Up

126

Left

123

Down

125

Right

124

Numeric Key Pad

Key

Code

Key

Code

0

82

5

87

1

83

6

88

2

84

7

89

3

85

8

91

4

86

9

92

/

77

+

78

*

66

.

65

-

70

=

81*

* This key is only on the Mac numeric key pad.
** This key may be "Return" on a Mac
*** This key may be "Delete" on a Mac

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_15887
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox
Database:DB2
Informix
MySQL
Oracle
SQL Server
Sybase
MS Access

Products Affected: