get keyboard input working