don't process keys if submenu is open