You don't need to press the button or combos, that the emulator provides/supports.
If you set an Exit Hotkey (or even a combination of buttons) in AM, AM kills the belonging executable.
for example the NES-emulator Mesen.
If you open a romfile with Mesen and press ESC => Mesen pause the emulation.
if you set ESC as Exit Hotkey in AM:
AM close the complete emulation.
open AM > press TAB-key > Emulators > choose your display > Exit Hotkey : press ESC