Once you get 3 keys, you can unlock the door in the room where you got the sword. I'm pushing a bug fix now though because I completely forgot to reset the key count on death