There's probably an easy answer to this one. When I use code like this :

Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN,keyPressed);
function keyPressed(event:KeyboardEvent):void {
    trace(event.keyCode);
}
and run it in the IDE I find that I can't press keys that are shortcuts to tool items (like 'v' for the pointer or 's' for the ink bottle tool. Is there any setting that will get rid of this? What am I doing wrong?