Capturing keypresses

how to know if one presses a key (with a keycode not from the list) ?
im trying:

if(Key.isDown(Key.getCode(104)))do_something();

and it ‘does_something()’ if any key is pressed.
that’s kinda lame question but thanks anyway :wink:

ummm how about
onClipEvent (keyDown){
//do stuff
}

but how to specify if which key is down?
btw - i dont need to know how to make a ‘press any key’ option but how to detect a keypress from a key that is not in the list that appears when you write ‘Key.’

maybe a better question might be which key are you trying to capture? I was under the impression that you wanted to capture any keypress, now I see that you want to capture something like the ESC or ALT key.

i want to capture numpad keys