In And Out

Riddle:

I turn around once. What is out will not get in. I turn around again. What is in will not get out. What am I?

Answer:

A Key.