Key

Keys are collectibles in Super Mario 64 and Super Mario 64 DS. There are 3 key types: The Bowser keys, the character keys, and the star keys. The Bowser keys are dropped by Bowser in Bowser in the Dark World and Bowser in the Fire Sea. They take the appearance of standard yellow keys with horns, and unlock the Basement and Second Floor of Princess Peach's Castle.

The character keys and star keys are only found in Super Mario 64 DS, excluding supposed manifestations in personalized copies of Super Mario 64. The character keys are dropped by Goomboss, King Boo and Chief Chilly in Goomboss Battle, Big Boo Battle and Chief Chilly Challenge respectively, and they unlock Mario, Luigi and Wario, also respectively.

The star keys are used to unlock minigames in the Rec Room, and are found by catching Rabbits around Princess Peach's Castle after talking to a Toad in the Rec Room that will cause the Rabbits to spawn. A star key obtained by collecting all 8 glowing Rabbits can also unlock a door containing a castle's secret star.

Extra Keys
The Third Floor does not require a key in standard copies of Super Mario 64. However, some reports claim that a Bowser level on the Second Floor contains the key required to unlock the Third Floor. Extra keys can also appear to unlock the First Floor, usually being found from finding MIPS in the Castle Grounds similarly to Super Mario 64 DS. Keys have also been reported to appear to unlock anomalous floors, such as the Fourth Floor. Another reported usage of keys can be to unlock the cannons in levels instead of talking to Bob-omb Buddies.

Key Removal
In some personalized copies of Super Mario 64, doors requiring keys are replaced with doors requiring a certain amount of stars. Notably, Bowser levels usually do not get removed, with the key dropped by Bowser being replaced with a star, similarly to early builds of Super Mario 64. However, Bowser levels have been reported to be removed, and instead replaced with another special level.

Other Key Types
There are 3 anomalous key types that do not take the appearance of regular keys. These include a key with the Metal Cap texture known as the Metal Key, and a key held by a Boo known as Big Boo's Key. The Metal Key can unlock special floors or a secret part of the castle, while Big Boo's Key usually unlocks rooms in Big Boo's Haunt, though it can also unlock special floors of Princess Peach's Castle, most commonly Floor 2B. There is also an unused Big Star Key in the files of Super Mario 64 DS with an unknown use that unlocks Princess Peach's Castle upon being collected. There is also a rumored key used to unlock Waluigi, though this is unconfirmed.

DS Key Manifestations
In some personalized copies of Super Mario 64, the character keys and star keys can reportedly appear with similar, identical or entirely different uses. The character keys usually function exactly the same or unlock a level tied to the corresponding character, but the star keys have several reported uses, such as replacing Bowser keys, minigames in the Rec Room if they are present, special rooms in Princess Peach's Castle, or nothing potentially due to Personalization A.I. limitations.