Can anyone teach me how the hotkeys and the programming works?

It’s beginning to look like what I want to do with hotkeys simply won’t work. Still, I’m interested in how the programming itself works. Is there anyone who might be able to give me a mini-lesson?

I’m running Retroarch on a Raspberry Pi, if that makes any difference.

Thanks!