How to enable third button cheat in final fight Mame?

According to https://kb.speeddemosarchive.com/Final_Fight/Basics

A short note on button 3. Anyone who has played Final Fight in mame may have taken notice that button 3 can be bound, and appears to do nothing. This seems to be a leftover development button, and it still has one function. Specifically, pressing button 3 when being grabbed (primarily by Andores or Abigail), will result in your character falling out of the grab. No official documentation contains any references to button 3, it is not an available button on any official cabinet, does not show up in the input check, and it is not included in any port of the game, so use of button 3 is regarded as a cheat by SDA standards.