[PATCH] Remapping support in keymap.c