@mitu Many thanks for the quick feedback!
I have followed the advice on the network interface and the use of triggerhappy. I also looked into overlays in RetroArch and developed a solution. I would like to briefly explain this so that other users can also benefit from it.
First, I configured RetroArch so that content-specific overrides are loaded (if available). For each game for which an infoscreen is to be displayed, I have defined two overlay-pictures in the override. The first image is always a blank image (blank.png) and the second image shows the controls (e.g. pacman.png).
In the background, triggerhappy queries the keystroke of an unassigned button and then sends the following commands to RetroArch: OVERLAY_NEXT and PAUSE_TOGGLE. I had to program a small script to execute both commands simultaneously. Finally, I integrated the start of triggerhappy as a daemon into the boot process. Works great! :-)
If anyone has any questions or needs help, I will be happy to provide further information.