How do you get the key to the door in the mine?

You need to be a member and play the puffle rescue game and it has to be the black puffle. you need to complete the black puffle rescue game and you will receive the key. In order to use the key you need to be a member. This worked for me and I hope it works for you :-)