The Java KeyListener is notified whenever you change the state of key. It is notified against KeyEvent. The KeyListener interface is found in java.awt.event package. It has three methods.
The signature of 3 methods found in KeyListener interface are given below:
public abstract void keyPressed(KeyEvent e);
public abstract void keyReleased(KeyEvent e);
public abstract void keyTyped(KeyEvent e);
A11 Acharya Niketan
Mayur Vihar 1
Near MayurVihar Metro Station