Learn how to prevent this strange behavior in the first place.
Use left and right arrow keys to navigate between menu items.
Use right arrow key to move into submenus.
Use escape to exit the menu.
Use up and down arrow keys to explore.
Use left arrow key to move back to the parent list.