I made a script for a friend once that swapped the Esc and pause break keys.

you could set the F6 and F12 keys so that there action was changed.

I guess thought that you could program a C++...