I'd like to remap Caps Lock to right click - for the cases where I can focus on objects with cursor keys, or tab.
For instance after selecting files in Finder I'd like to push Caps Lock and get the contextual menu you'd get on right click.
You can use this keyboard driver to assign a regular key code to caps lock (e.g. enter, something you probably don't use -- it's not the same as return).
A more complete reference of known key codes than the one in the screen shot on the site is here — although they're for AppleScript, they should be the same, with
Use QuicKeys to create a script that is invoked when you press your hotkey.