Yes, it's due to the fact that you have alt mapped as a button. It still boggles my mind as to why the mame devs decided to use that as button number 2.
Alt and certain key combinations adjust the display and also switch focus to other apps. Remove alt as one of your keys. I personally replaced alt with v and changed my main ctrlr file accordingly.