No on the face of it (except using AHK to do it is a bad idea) but you can do that with the in-game keymapping. Much safer right? Same with using your mouse software. You can re-map buttons and have it save with the mouse software.
Risking an account suspension or closure is not worth it for key mapping.