This interface defines methods to respond to events arising when a key on the keyboard is pressed or released.