I agree, use ctrlr files and never change the key config in the tab menus.
What happen was you somehow screwed up your menu button and now you don't know it. It's stored in the default cfg file. That's why you delete that file, it will get rid of ALL of the changed you made in the general settings of mame. Hence another reason why ctrlr files are better.