Hello,
Thanks so much for this thread and all the detailed steps! My keyboard was sending unknown key codes for all the "multimedia keys" that were interpreted all the same as 0 by kodi. With your guide I was able to remap all the keys I wanted to use as regular keys and keymap them to do what I want.
Thanks again.