I don't know about Mamewah. But i suppose you can define keys.
In my Front End (AtomicFe), you can affect another key to exit the front end (i think you can with MameWah too) . And you can even put a password (you can enter with a arcade panel) on exit!.