PPSSPP has its own built in gui where you exit from (also save/load states, change settings, etc.) Its on the guide button on my xbox one controller, not sure what the keyboard key is, but it can probably be changed to one you like in the settings.
Edit,
Also controller automation works just fine with it, if you have launchbox premium.