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?

A key.