Implements keylistener on the JTable