Examples
This handler uses the Message window to display the appropriate key code each time a key is pressed:
on enterFrame
the keydownScript = "put the keyCode"
end
This statement checks whether the up arrow (whose key code is 126) was pressed and if it was,
goes to the previous marker:
if the keyCode = 126 then go to marker(-1)
This handler checks whether one of the arrow keys was pressed and if one was, responds
accordingly:
on keyDown
case (the keyCode) of
123: TurnLeft
126: GoForward
125: BackUp
124: TurnRight
end case
end