Key.isDown() imitation classes crashing processes? (Flex 3)

Hi folks, been lurking around here for a couple weeks and as a means of learning Flex 3/AS3 I’ve been attacking various programming projects. My latest one is intended to be a very simple platform game but I’ve hit a roadblock.

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler) seems to prevent any further code from executing in the program.

I have tried using senocular’s replacement classes after attempts to code my own failed, but it seems to do this regardless.

Does anyone have any ideas why this happens? If I add an event listener to the Application instead, it will not register any keydowns unless a textfield or something along those lines is present, which is no good to me.

Basically I would just like to get all this KeyDown and KeyUp code out of my main application’s mxml file in a clean way.