While holding right click to block with a shield in your off hand
If the shield ducks down you will "right click" allowing you to enter chest or dispensers. after you exit them your shield will always be in "block" mode allowing you to right click with tools and other items, except without the movement speed reduction, until you right click again.
Dupe of MC-86252