add code for keyboard input