OKey this looks bit complicated, will need to look into this.
Basicly i need to close the emulator with 1 key and once closed the key can be used in bigbox again.
So i dont want to bind 1 key to alt+f4 because if i close the emulator it goes to bigbox and then i cant use this key anymore.
In bigbox i have the C key setup as "back button" but in most emulators i have setup the C key also to close the emulator.
Example mame has key setting "UI cancel or UI exit" to close the emulator, but once closed the key can be used as back again which is great.
However not all emulators have keysetting to close the emulator
But thanks for providing the link, will check it out