AS3 Migration issue:

Hello all…
newbie looking for some helping hands…

I am getting couples of Migration issue when compile in Adobe CS4…

Warning:

Warning: 1090: Migration issue: The onKeyDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( ‘keyDown’, callback_handler).

Code: 1

protected function onKeyDown(Event:KeyboardEvent):void{
            if (Event.keyCode == Keyboard.ESCAPE){
                pause();
            };
        }

Code: 2

private function onEnterFrame(arg1:flash.events.Event):void
        {
            return;
        }

Code: 3

private function onKeyUp(arg1:flash.events.KeyboardEvent):void
        {
            if (arg1.keyCode == Keyboard.ENTER)
            {
                arg1.target.removeEventListener(KeyboardEvent.KEY_UP, onKeyUp);
                onSubmit(arg1);
            }
            return;
        }

Code: 4

private function onKeyUp(arg1:flash.events.KeyboardEvent):void
        {
            if (arg1.keyCode == Keyboard.ENTER || arg1.keyCode == Keyboard.ESCAPE)
            {
                removeEventListener(KeyboardEvent.KEY_UP, onKeyUp);
                this.close();
            }
            return;
        }

Code: 5

protected function onKeyUp(_arg1:KeyboardEvent):void{
            if ((((_arg1.keyCode == controller.LEFT)) || ((_arg1.keyCode == controller.RIGHT)))){
                startCarousel = false;
                carouselReady = false;
            };
        }

Code: 6

override protected function onKeyDown(_arg1:KeyboardEvent):void{
            super.onKeyDown(_arg1);
            if ((((_arg1.keyCode == controller.LEFT)) || ((((_arg1.keyCode == controller.RIGHT)) && (!(carouselReady)))))){
                carouselReady = true;
            };
        }

My App works after compile, but you can notice some malfunctions when pressed the KeyDown

any help would be grateful appreciated.

Best,

Thunder_one