Latch

A mechanical device that automatically keeps a door closed until a deliberate action is used to retract it.