restore the keyboard select input state