Use of keyboard to switch the menus