You gotta block it with your hand.
Ah, pump soap. Pump soap, pump soap, pump soap. (I was shaking my head as I typed that.) The kind we have in the bathroom now is poorly designed. Or, I mean, the nozzle part of the mechanism is poorly designed. If you put your hand where you would normally put your hand when dispensing pump soap, when you pumped it, the soap would shoot out and get you in the shirt front. So you gotta block the jetting spray with your hand instead. And the hard part is, you have to remember to do this. Which you won't. Not every time.