Try the following code:
myListener = new Object();
myListener.onKeyUp = function() {
if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) {
//Ctrl+C
trace("Ctrl+C key down!");
}
};
Key.addListener(myListener);
hold Ctrl key and start pressing C. From some point you will notice that there is no KEY_UP event for the C key (there will also be no event for A,X,R,V and maybe more).
For most of the button the KEY_UP event will still be dispatched.
Why is that? Is there a solution?
What’s wrong with this?
KEY_UP event of ctrl key blocks KEY_UP event of 'c' key
Also take sure your flash object is focused on browser page, and browser don’t catching your keyboard events.