keybord input

i want to listen for a keybord input(not in textfield), when the user press button on the keybord i want to know what button he pressed.

can anybody help me? show me please an example how to use it in a program.

* i want to do this when it focused on JPanel but this is not he point.

sorry for my bad english.

[334 byte] By [zurka] at [2007-10-2 9:08:28]
# 1
Seejava.util.KeyistenerKeyboardFocusManagerSystem.in.read
tjacobs01a at 2007-7-16 23:15:28 > top of Java-index,Security,Event Handling...