The "key" is a skull that needs to be placed in a socket on a statue. This activates a hidden passageway that leads to the treasure.
Let me know if you have any other Scooby-Doo mysteries you want to discuss!