added keyboard input listeners for desktop version