Possibly something similar to "Walk a mile in someone else's moccasins"
"The admonition to walk a mile in someone else's shoes means before judging someone, you must understand his experiences, challenges, thought processes, etc. The full idiom is: Before you judge a man, walk a mile in his shoes. In effect, it is a reminder to practice empathy."
The cause was the keys being locked in the car. You can know this by the word,”consequently.” That words shows there was an effect to the action of leaving the keys in the car.