The basic idea is to combine the Kodi or XBMC controller preset keymap definitions with the Kodi Keyboard Controls information and use the Flirc Keyboard Controller to map remote control buttons to the desired Kodi keyboard keyboard shortcuts:
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!