When you tab to the movie clip and press a key,
displays in the Output panel.
key was pressed
However, this does not occur after you move the mouse, because the movie clip loses focus.
Therefore, you should use
in most cases.
Key.onKeyDown
See also
MovieClip.onKeyUp
556
Chapter 2: ActionScript Language Reference
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?