test keyboard input