I got bored over the weekend so I wrote this

You set it up like this:

Code:
import Key;
Key.listen(stage);
Now place it in your game loop and use it the same way you did before:

Code:
if (Key.isDown(Key.LEFT)){trace("Left cursor key is being pressed")}
From my new blog, but no-one's reading it yet, so I thought I'd post here as well. Enjoy.