KEYCODE_ is VERY bad.....
programatically in mame, it says "create a generic input port for an external program to use and send ALL keycode data through this port." This is kept in place for joysticks that have more than 10 buttons, but what you are saying is "any keyboad key that's unlabeled" and there are more than one, which is confusing mame. As you can imagine, all manner of crap happens when you do crazy stuff like that.
Besides that, the ctrlr files don't exactly do a super job of filtering out bad inputs, so when you add them, there's no telling what mame will think you mean.
Long story short, like I said before.... user error. Reading is a good thing. Asking questions before reading is a bad thing,
