The Magic Key is a recurring key in the Dragon Quest series.
In Dragon Quest, Magic Keys can be bought at Rimuldar for 53 G. They unlock doors that can't normally be opened but disappear after one use. If you exit the place and come back, the doors will come back, but the treasure will also come back.
Dragon Quest III
The magic key is located on the 3rd basement of the Pyramid. It is the 2nd key acquired in the game. The key is required in order to reach Portoga and progress in the game. In order to get the key, the hero's party must solve a button puzzle which involves pressing 4 buttons in the correct order. The solution is hinted by young boys in the castle of Isis.
Dragon Quest IV
The magic key is located in a cave west of Kievs. There is a switch in a treasure chest where the party found Orin.
Dragon Quest V
In Dragon Quest V you can obtain the magic key in the third act. The key is hidden in the city of Elhaven (Lofty Peak in the DS remake).
Dragon Quest VI
After completing the Baptism subquest in Holstock the king will give you the magic key as thanks.
Dragon Quest VII
The magic key is available in Brugeo's Manor after obtaining the Magic Carpet.
Dragon Quest VIII
The magic key is in a chest in Trodain Castle.
Dragon Quest IX
The magic key is found at the Mirage Mahal in Gleeba. It allows access to warded doors. The only doors it cannot open are ones related to the story (i.e. the one in Gittingham Palace leading to the Oubliette)