Getting selected menu item and moving up and down