keyboard input sample