Clear key buffer when changing root of menus