Hey RetroMarine, thanks for the answer!
I’ve just now tried setting the retroarch.cfg to this:
input_enable_hotkey_btn = f
input_exit_emulator_btn = g
The arcade buttons start and select are routed to those keyboard inputs.
When I tried pressing Start and Select simuntaniously, nothing happend. Escape button still worked though.
What do you think I might have done wrong?