Store the current menu for each click.
Store menu 'commandmap' for commandmaps.