Sample MCE remote keyboard.xml

This is an example of a keyboard.xml file you might create in your userdata/keymaps folder to map MCE shortcut keys to Kodi actions. The basic operations of Play, Pause, Stop etc are already included in the system keyboard.xml. I've included all the MCE shortcuts from http://msdn.microsoft.com/en-us/library/bb189249.aspx even though some don't have an obvious action in XBMC.

&lt;keymap&gt; &lt;global&gt; &lt;keyboard&gt; &lt;!-- Windows button: mapped to ctrl-shift-W by MSRemote.reg --&gt; &lt;w mod="ctrl,shift"&gt;Notification(Key, Windows button, 3)&lt;/w&gt;

&lt;!-- Details: ctrl-D: displays Info. Labelled as "More" on the MS remote --&gt; &lt;d mod="ctrl"&gt;Info&lt;/d&gt;

&lt;!-- MCE uses F10 for vol up, F9 for vol down and F8 for mute --&gt; &lt;f10&gt;VolumeUp&lt;/f10&gt; &lt;f9&gt;VolumeDown&lt;/f9&gt; &lt;f8&gt;Mute&lt;/f8&gt;

&lt;!-- MCE uses equals (plus) for channel up, minus for channel down --&gt; &lt;equals&gt;PageUp&lt;/equals&gt; &lt;minus&gt;PageDown&lt;/minus&gt;

&lt;!-- These are the four buttons below the arrows on the MS remote --&gt;

&lt;!-- Recorded TV: ctrl-O: there isn't an obvious function in Kodi --&gt; &lt;o mod="ctrl"&gt;Notification(Key, Recorded TV, 3)&lt;/o&gt; &lt;!-- Guide: ctrl-G: displays the OSD --&gt; &lt;g mod="ctrl"&gt;OSD&lt;/g&gt; &lt;!-- Live TV: ctrl-T: there isn't an obvious function in Kodi --&gt; &lt;t mod="ctrl"&gt;Notification(Key, Live TV, 3)&lt;/t&gt; &lt;!-- DVD menu: ctrl-shift-M: there isn't an obvious function in Kodi --&gt; &lt;m mod="ctrl,shift"&gt;Notification(Key, DVD menu, 3)&lt;/m&gt; &lt;!-- Radio: ctrl-A: there isn't an obvious function in Kodi --&gt; &lt;a mod="ctrl"&gt;Notification(Key, Radio, 3)&lt;/a&gt;

&lt;!-- Some MS remotes have the four coloured buttons. These are mapped --&gt; &lt;!-- to ctrl-alt-1 to 4 by MSRemote.reg. --&gt;

&lt;!-- Red button: ctrl-alt-1: this is a placeholder --&gt; &lt;one mod="ctrl,alt"&gt;Notification(Key, Red button, 3)&lt;/one&gt; &lt;!-- Green button: ctrl-alt-2: this is a placeholder --&gt; &lt;two mod="ctrl,alt"&gt;Notification(Key, Green button, 3)&lt;/two&gt; &lt;!-- Yellow button: ctrl-alt-3: this is a placeholder --&gt; &lt;three mod="ctrl,alt"&gt;Notification(Key, Yellow button, 3)&lt;/three&gt; &lt;!-- Blue button: ctrl-alt-4: this is a placeholder --&gt; &lt;four mod="ctrl,alt"&gt;Notification(Key, Blue button, 3)&lt;/four&gt;

&lt;!-- These buttons aren't on the MS remote but are on many clone remotes --&gt;

&lt;!-- My TV: ctrl-shift-T: there isn't an obvious function in Kodi --&gt; &lt;t mod="ctrl,shift"&gt;Notification(Key, My TV, 3)&lt;/t&gt; &lt;!-- My Music: ctrl-M --&gt; &lt;m mod="ctrl"&gt;ActivateWindow(music)&lt;/m&gt; &lt;!-- My Pictures: ctrl-I --&gt; &lt;i mod="ctrl"&gt;ActivateWindow(pictures)&lt;/i&gt; &lt;!-- My Movies: ctrl-E --&gt; &lt;e mod="ctrl"&gt;ActivateWindow(video)&lt;/e&gt; &lt;/keyboard&gt; &lt;/global&gt;

&lt;!-- ctrl-D needs to close any open Info screens --&gt; &lt;FullscreenInfo&gt; &lt;keyboard&gt; &lt;d mod="ctrl"&gt;Close&lt;/d&gt; &lt;/keyboard&gt; &lt;/FullscreenInfo&gt; &lt;MovieInformation&gt; &lt;keyboard&gt; &lt;d mod="ctrl"&gt;Close&lt;/d&gt; &lt;/keyboard&gt; &lt;/MovieInformation&gt; &lt;PictureInfo&gt; &lt;keyboard&gt; &lt;d mod="ctrl"&gt;Close&lt;/d&gt; &lt;/keyboard&gt; &lt;/PictureInfo&gt; &lt;/keymap&gt;