This interface defines methods to respond to events arising when a key on the keyboard is pressed or released.
Defined MethodsDescription
keyTyped(KeyEvent e)Called when a key on the keyboard is pressed and then released
keyPressed(KeyEvent e)Called when a key on the keyboard is pressed
keyReleased(KeyEvent e)Called when a key on the keyboard is released