Keyboard listener for menus and login