NeoGeo Analog_Down Event, how to edit?

I use Arcade (MAME) core, while I’m playing King of Fighter, it is easy to press down the analog. The left activates Hardware Test service and reset afterward, the right simply resets. I want to nullify these events, what steps should I take? Thanks in advance.