Locker Door

If you wanted to use a microcontroller, any switch could do it.

If you want it to be a simpler circuit, you need a Normally-closed switch (it closes the circuit when it's not pushed).