[menu.py] Store control identifiers.