Nice job! I suggest adding screenshots and looking over your grammar. Another thing is that this has already been made by a few people:
https://forum.creative.gimkit.com/t/how-to-make-a-door-that-needs-a-key/6822
I added a difficulty for you, too.
(btw the <> only work if it’s letters and no spaces)