SWiSH Player Support
SWF5 or later
Syntax
Key.isDown(keycode)
Arguments
keycode (do not confuse with ascii code, although the two are the same for most ascii keys a..z etc.)
The keycode for non ascii keys can often be obtained via the Key properties. eg. Key.PGDN for the page down key.
Returns
The status of the nominated key.
Description
Method: Returns true if the nominated key is currently being pressed.
Sample
onEnterFrame() {
// _root.ret.text is a dynamic text element.
// this displays the status of the PGUP key
_root.ret.text = Key.isDown(Key.PGUP);
}