keystroke when clicking mouse button I want to assign the middle mouse button to the space key, so I can pan in Photoshop and illustrator without using the keyboard.

I'm sure something like that must exist for Mac OS, but I only find references to the opposite which is making a click with the keyboard.
I found Controller Mate that does exactly what I need, but for some reason it doesn't work in Photoshop or Illustrator. I've tried in other applications and it works...

http://www.orderedbytes.com/controllermate/

The bizarre thing is the hand icon appears, but still no pan, even if I have also set the middle mouse button to perform a left mouse click.