The KeyAdapter class
implements the methods of KeyListener
with empty functions. It may be easier for you to extend KeyAdapter,
overriding only those methods you are interested in, than to implement
KeyListener and provide the
empty functions yourself.