fixed a bug where the keyboard would not respond immediately in the menu