added keyboard listener to cat