Don't crash menus when pressing keys.