I do only know those 2 possibilities you mentioned (F1 in ES and Hotkey + B while in Game).
Are those not short/quick enough for you?
Another alternative could be, to access the retroarch config files via ssh, but i don’t think this is faster (but maybe if you create scripts somehow?)
Why do you need a shortcut in the main menu? what do you want to do?