Improved keyboard listeners.