Do you want to control system volume or MAME volume?
Mame volume is easy as you can set a shifted key for vol up & down then set those keys in the mame control set up.
The default for mame is the + & - keys.
System volume is a bit hardsr and depends on Windows version but you need to keyboard shortcuts and again set shift keys for most.
As for the power I assume you have already extended your pc power switch to your cabs exterior? If so just go to ure power management options and set it to shutdown pc on button press simples