How to use the keyListener

Aha! Just noticed the following in this discussion: Can't get keyListener to work

setWantsKeyboardFocus(true);

That did the trick