I have a code from previous code of flase, that use ESC key,
this code is not working when I publish my movie to flash 8 movie,

code:

global.myKeyHandler = new Object()

_global.myKeyHandler.onKeyUp = function(){
var theKeyCode = Key.getCode();
trace(theKeyCode)
switch(theKeyCode) {
case Key.ESCAPE: // ESC pressed
trace("ESC pressed");
break;
case Key.TAB: // tab key
trace("TAB pressed");
break;
}
}

Key.addListener(_global.myKeyHandler);



when i test the movie (Control > Test Movie) it can work only if chose to publish to older flash player or if I chose to disable keyboard shortcuts
(Control > Disable Keyboard Shortcuts).

it look like the "esc" key is disabled for flash 8, is there a way to bypass this?

10x