keystroke when clicking mouse button
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.