Flash MX 2004.
tools.getKeyDown()
None.
The integer value of the key.
Method; returns the most recently pressed key.
The following example displays the integer value of the most recently pressed key:
var theKey = fl.tools.getKeyDown();
fl.trace(theKey);