For what component should I add KeyListener?
you can to use Keylistener for (is designated)
prehistoric AWT Component (Swing based on AWT)
for more than 3 keyPressed in the same time or to determine the order
but then is for Swing JComponents better to use KeyEventDispatcher or AWTEventListener (both react to singnals from keyboard)
- otherwise use KeyBindings (e.g. Swing JComponents uses KeyBindings internally)