Actionscript Key Listener Tutorial AS3
Allowing users to use the keyboard as well as the mouse is a great way to incite interaction with your flash. This tutorial will show how to code it and what you can do with some keyboard events. This changed with actionscript 3, note this tutorial is AS3. altKey (Boolean) Indicates whether the Alt key is active (true) or inactive (false). charCode (uint) Contains the character code value of the key pressed or released. ctrlKey (Boolean) Indicates whether the Control key is active (true) or inactive (false). keyCode (uint) The key code value of the key pressed or released. KeyboardEvent keyLocation (uint) Indicates the location of the key on the keyboard. KeyboardEvent shiftKey (Boolean) Indicates whether the Shift key modifier is active (true) or inactive (false).