I always wanted just one more button on my x-arcade as a dedicated exit mapped to ESC.
Here is how to add one more button without altering any of the existing buttons:
The x-arcade trackball has wires for 3 mouse buttons, but only two of them are used in the tankstick.
The wires for the third button are unused. They are tangerine(peach?) color, coming out of the trackball assembly.
After cutting the zip ties, there is enough wire to reach anywhere in the case.
There are also plenty of unused ground wires coming out of the trackball assembly.

I hooked them up to the trackball "cheater" button for testing.
The computer sees it as the center mouse button.
To make it post as the ESC key, I installed AutoHotkey
http://www.autohotkey.com/and used the following script-
MButton::escape
Create a shortcut to the script, right click to copy it, then paste it in the startup folder.
(right click start>explore all users>programs>startup)
This will launch the script with windows and a middle mouse button click with post as the ESC key.
This solved exiting problems that I was having with FuturePinball and some PC games.
EDIT: MAME does not see fake key presses, so you'll have to remap UI Cancel in MAME to the middle mouse button.
I didn't want my guests accidentally hitting the programming button on the back of the tankstick, so I installed another button at the top of the control panel.

The button is even with the 1P & 2P buttons and a little left of the center of the joystick.
This missed some brackets & there was plenty of space to work in that corner.


(hammer not used during this project)