Arbitrary Key Remapping on a Mac

I bought a cheap Chinese replacement keyboard for my late 2007 MBP. The close square/curly bracket key actually sends a left control signal to the Mac. So I'm trying to remap my backslash/pipe key to be close square/curly bracket but I can't find the key remapping software to do it. Double Command and KeyRemap4Macbook can't do arbitrary key remaps and uControl/fkeys don't work on Snow Leopard. Anyone have ideas? I have no problem editing text config files if necessary.


Use Ukelele to create your own keyboard layout.


You can add custom settings in KeyRemap4MacBook by creating a private.xml. Try something like this:

<autogen>__KeyToKey__ KeyCode::CONTROL_R, KeyCode::BRACKET_RIGHT</autogen>

See my website for more information about KeyRemap4MacBook, custom keyboard layouts, and DefaultKeyBinding.dict:

http://osxnotes.net/keyremap4macbook.html
http://osxnotes.net/keylayout-files-and-ukelele.html
http://osxnotes.net/keybindings.html