Just thought I could add to this a little bit. The codes that are needed in the last line of the /boot/config.txt file are “keyboard v-scan keycodes”. That wasn’t obvious to me at first. Google search should return a few pages that list them all.
IE:
0x013 = r
0x014 = t
0x015 = y