Added keyboard listener.