If you meant zooming in photoshop, you can easily just hold Z down and drag your pen left or right to zoom in and out. If you hold Z instead of taping it will automatically return back to your previous tool after you zoom. So you could be using your brush, want to zoom in, hold Z drag, let go and you will be using brush as soon as you let go of Z.