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?

Code: gyazo.com/587e95d92511a3a66406e13218ce2d94
Game: gyazo.com/61ffaa47266d18114b7f527be184917f

Try specifying that your door is “lockable”.

This worked, I am stupid, thanks.