I have this exact same remote (visually it looks exactly like the picture from post #1). It's been a while since I've done this, but I'll try my best to explain what I did to remap some of the keys. I'm not saying this is the "best" way or the only way. But it's how I did it.
OK, first of all, you need to figure out which .kl file is your remote. So, unplug your remote and then reboot and look at your .kl files and remember (or write down or screenshot or something) which files are there. They should probably be in /system/usr/keylayout/
Then plug in your keyboard and see which is the "new" file. Mine was called Vendor_1915_Product_0145.kl but yours might be different.
Make a copy of that "Vendor_1915_Product_0145.kl" file that you are going to modify.
Next, download and install this android apk onto your device:
https://github.com/chrisboyle/keytest/downloads
Then run that keytest program on your android device. When you press buttons on your remote with that app running, it will show you what the "scancode" is for each button. Press each button on your remote that you want to remap and keep track of it's "scancode".
Open your "Vendor_1915_Product_0145.kl" file with a text editor and then find each scancode that you wanted to change. Beside that key, put the action you want to happen. Here is an example:
key 59 MENU
becomes
key 59 C
save that "Vendor_1915_Product_0145.kl" file and overwrite your existing one (you might need to have a rooted device and a root file manager to overwrite this file). Then reboot and test your changes.
On mine, the red, yellow, green, and blue buttons are just like any other button and they have a scancode just like any other. So, I have my red button as a "stop" button (x), my yellow button is the letter o, and my green button is the letter i. When I upgraded my device from 4.1.2 to 4.2.2, some of the keys changed and I had to update my kl file a little bit. I could provide you MY custom Vendor_1915_Product_0145.kl file, but unfortunately I didn't make enough comments in mine and it's pretty messy. But if you want it, I could post it for you to give it a try.
My biggest beef with this remote is the mouse and the mouse buttons. Every time I touch my remote, I always press the mouse disable button first. Because with the mouse enabled, the mouse "left click" button is the center "OK" button. Which means that with the mouse enabled, the OK button is no longer the "enter" button. The mouse DOES stay disabled until the remote goes to sleep, which is good. But for example: if you disable the mouse, move around the menus, start playing a movie and then set the remote down and watch your movie for 30 minutes and then press "pause", the mouse will be enabled again when you press pause.
Anyway, hope that helps someone. If anyone figures out a work around for the mouse getting re-enabled when it come out of sleep, please post it. My thought was if I could find the mouse driver file (assuming that there is one
). I could delete it to break the mouse functionality. But my android knowledge isn't nearly good enough to pull that off.