Did you remember _____ the door when you left?

lock
to lock
locking
to locking