Hold E to open inventory. Drag the key to the chest. Rarity is based on material and quantity. Bronze being the worst, silver being second best, and gold being best.
The coins were not made by me neither was the chest. For those I give credit to @theChAOTiC and @Player-64. The rest was made by me