Blender Noob here. Is it possible to alter the behavior of Pan/Rotate?

I’m a Max user and decided to learn Blender. I’ve set up a lot of similar short cuts but one thing that really frustrates me is panning/rotating. I’ve set it like 3ds max to use Alt+MMB for rotate and MMB for pan, but the problem is that Blender doesn’t recognize whether alt is pressed or not while panning for example.

In Max you could interrupt panning while still holding down MMB just by pushing alt to start rotating, but in Blender I have to keep unclicking MMB to get it to switch between pan and rotate. Is it possible to reprogram this behavior somehow?