Yeah, I figured if you press nothing for a short while, the guard swaps out with the other guard who lets you out. I enjoyed the subtle Metal Gear reference there.