Hi mate
Are you using a mac or linux? I found that putting the commands into InputAutoCfg was the best way. I think the .cfg file is auto generated every time you run mupen and it takes the settings from InputAutoCfg.
See my blog posts at http://www.alex-wilkes.com about this.