Can't lock a door?

I’m trying to have a door that is already unlocked be able to be locked. Then, when locked, text will come up (progressing the story). I have made the key, the door, where the door is. However it will not work. Any idea why?


Try specifying that your door is “lockable”.

This worked, I am stupid, thanks.