Use Key In Door

There is a room. There is a door. There is a key on the table. Leaving should be easy. It will not be.