How to use "prevented" in a sentence

Sentences

She spun the wheel and located a pin that, when pushed, prevented anyone from turning the handle back to the unlocked position.

All these things prevented me from making a sensible decision.

On the Saturday evening, at Waterloo station, he learned that an accident prevented trains from reaching Woking

The curate talked endlessly, and this prevented me from forming a plan of action.