It’s simple, just connect from GPIO3 to ground using a push button type button. Look at your rpi documentation for the correct pins. On the rpi2 b+ they are right next to each other
Reply To: How to: Exit emulator to emulationstation using GPIO button