keyboard input update