Update keyboard input handling