Per queste cose usa le actions, il KeyListener ha uno scopo diverso da quello che vuoi dargli tu.

http://docs.oracle.com/javase/tutori...eybinding.html

ps: per postare codice il tag da usare è CODE e non QUOTE