I haven't used the keymap editor for ages so don't know if it's working or if it maybe has some issues.
Mapping remote buttons via a remote.xml file in /storage/.kodi/userdata/keymaps/ is working fine though.
Here's the remote.xml I'm using for my Hauppauge remote. I've remapped the power button to show the shutdown dialog window so my RPi doesn't unconditionally shut down if I accidentally press it.
Code
<keymap>
<global>
<remote>
<power>ActivateWindow(ShutdownMenu)</power>
</remote>
</global>
<FullscreenVideo>
<remote>
<red>AudioNextLanguage</red>
<blue>ActivateWindow(SubtitleSearch)</blue>
<green>SubtitleDelayMinus</green>
<yellow>SubtitleDelayPlus</yellow>
<star>ActivateWindow(Teletext)</star>
<hash>NextSubtitle</hash>
</remote>
</FullscreenVideo>
<FullscreenLiveTV>
<remote>
<livetv>ActivateWindow(PVROSDChannels)</livetv>
<guide>ActivateWindow(PVRChannelGuide)</guide>
</remote>
</FullscreenLiveTV>
<PVROSDChannels>
<remote>
<left>PreviousChannelGroup</left>
<right>NextChannelGroup</right>
<reverse>PreviousChannelGroup</reverse>
<forward>NextChannelGroup</forward>
<livetv>Close</livetv>
</remote>
</PVROSDChannels>
<TVChannels>
<remote>
<reverse>PreviousChannelGroup</reverse>
<forward>NextChannelGroup</forward>
<livetv>Menu</livetv>
<red>Container.NextViewMode</red>
</remote>
</TVChannels>
<TVGuide>
<remote>
<reverse>PreviousChannelGroup</reverse>
<forward>NextChannelGroup</forward>
<guide>Menu</guide>
<red>Container.SetViewMode(10)</red>
<green>Container.SetViewMode(11)</green>
<yellow>Container.SetViewMode(12)</yellow>
</remote>
</TVGuide>
<Teletext>
<remote>
<star>Back</star>
</remote>
</Teletext>
</keymap>
Display More
Enable debug logging in kodi and watch the kodi log with tail -f .kodi/temp/kodi.log while you press buttons to see which buttons are mapped to which keynames ("power", "red", "forward", ..).
The available actions and general info about remote/keyboard mapping are described in the kodi wiki Keymap - Official Kodi Wiki
so long,
Hias