I would rename the file back to controls.xml just for starters. Considering all of the problems you are having with Mame, I'm starting to wonder if something is wonky with your setup. Maybe you have more than one version setup, and things are getting confused? Also, AFAIK Headkaze reads the mame.ini file from the Mame folder, and not the Mame\ini folder. If you don't have a copy in your Mame folder, put one there. Lastly, make sure that you have the buttons on your CP layout assigned to the same mappings that you have setup in Mame.