The Armageddon Factor - S16-E6
Plot hole: In episode four, Merak expounds on how only the Doctor and Romana can get into the TARDIS, despite the fact that he shouldn't even know what the TARDIS is. His insight continues in episode six, where he talks knowledgeably of the sixth segment of the Key to Time, despite having been told nothing about it.
Answer: TARDISes are generally available for properly authorised use on Gallifrey; they're not usually assigned to a particular Timelord on a long-term basis. The Doctor stole his when he left his homeworld.
Tailkinker ★