Changed key listener to KeyAdapter so I wasn't implenting an interface.