Buy keys in-game. It will add it to your inventory so make space in your inventory before you buy it. If you lose it due to death or anything else, you will not be refunded.