[Acer Iconia A500] samstheman42:
I've been searching/researching this topic for a while, and finally was able to get this working tonight. What follows is the result of my hard work, and some advice that was provided to me by some other members (credited later). This tutorial is designed to show how to change from the standard QWERTY layout to another of your choosing, be it AZERTY or Dvorak (as was my case) or perhaps even another.

I originally wanted to remap my bluetooth keyboard from QWERTY to Dvorak but couldn't find an easy way to do this. What follows is simple if you follow the directions step by step, but you'll want to be careful with how you do this.

Tools:

-Root Explorer

-A text editor (such as Notepad in Windows)

Once you have paired your bluetooth keyboard to your tablet, a keyboard layout file will be created in the /system/usr/keylayout/ folder of your system.

If you are a newbie, once you open Root Explorer, click Menu > Bookmarks > Root Folder > system > usr > keylayout

(If you want to save some time later on, before you enter the keylayout folder, long press the keylayout folder and select "Add Bookmark." This will allow you to quickly get back to this folder when it is time to copy/paste our modified .kl files later on.)

This will give you access to the file/s that we will want to edit in order to remap your keyboard. You should see files like Generic.kl, qwerty.kl, and hopefully one or more files that start with "Vendor_" that also have the .kl file extension.

Next we need to determine which of these Vendor_xxxx_Product_xxxx.kl files is the appropriate one for your keyboard.

Each keyboard has a specific Vendor ID as well as Product ID. The Vendor ID can be located at this address for most popular brands of bluetooth keyboard. In my case, since I was using a Motorola keyboard, my Vendor ID is 22b8.

In the /system/usr/keylayout/ folder, find the .kl file with your Vendor ID. There should only be one .kl file for your keyboard. For me the file was named: Vendor_22b8_Product_093d.kl

Using Root Explorer, long press the Vendor_xxxx_Product_xxxx.kl file for your keyboard and select copy. Now, click Menu > Bookmarks > sdcard and click the "paste" button.

From here, copy this file to your computer using whatever method you prefer. Open your text editor (I used Notepad though many suggest Notepad++) and drag and drop the Vendor_xxxx_Product_xxxx.kl file inside.

This is what mine looked like:

I highly suggest opening a second text editor window and copy/pasting everything into that for reference while editing your keys. It may also be helpful to bring up an image of the keyboard layout that you wish to map to in a separate window somewhere else.

From here, we will want to change the individual letters and symbols for each key. The general layout will look like this: key x CMD [opt]

This means that key x will perform CMD command and [opt] option.

For my case, lets say that I want to change the letter "Q" to the symbol ' (yes, that's an apostrophe)

On my QWERTY keyboard, "Q" is key 16, so my edit to the entry for key 16 will go from this:

and will change to this

My full edited list (slightly condensed to really only show the keys that were changed) looks like this:

It's important to note that the other keys (1-15 and 55 onwards) are still there, I chose not to include them since they were not changed. If you delete the entries for these keys, you'll have half of a keyboard where the buttons don't do anything.

From here, once you are done editing your re-mapped keyboard, save the file in your text editor and copy it back to your sd card. Now, open Root Explorer and go back to the /system/usr/keylayout/ folder and delete your Vendor_xxxx_Product_xxxx_.kl file. If you do not, this will not work and you will have to replace your modded file with a copy of the original to fix the fact that your keyboard won't work at ALL anymore.

After you have deleted the .kl file, navigate back to your sd card in Root Explorer. (Newbies can Menu > Bookmarks > SD Card) Long press your modded copy of the .kl file and select "copy" from the menu that pops up. Now, Menu > Bookmarks > keylayout (or just take the long way and navigate your way there) and paste.

You are now done and can enjoy your newly re-mapped keyboard :-)

Special thanks go to:

tkolev for writing This Tutorial for how to map usb keyboards.