If it's the door I'm thinking of, you can find the key in the big room of the smithy, along the eastern wall.
If you can't find it there's also another way into the smithy basement through the tunnels under the town, but watch our for creepy crawlies down there...