Something important is locked. There is a key. However, this key is inside. You need the key to reach the key.
While this trope can be Played for Laughs with trivial situations such as locking your car keys in the car, many works that use it choose to employ it in a far more dramatic manner. The hero is on a quest to find the key, eventually finding some other way to reach what he needed the key for - and then he finds out that his initial quest was futile; the key was inside all along.
In a video game, this can be used to create a Door to Before.
Subtrope of the Catch-22 Dilemma.
- In one episode of Cardcaptor Sakura, Tomoyo has been trapped in a classroom as Eriol messed with the floor plan as a test for Sakura. Sakura needs to find her, and Syaoran says he has a magical technique that can locate lost people, provided she has left an object behind. (Not unlike a dog using scent, except it works off auras/energy signatures.) Tomoyo did have an umbrella...but it's with her in the very classroom they're trying to locate.
- In the third episode of Cowboy Be Bop this is played straight. The only way to decrypt the special decryption program is with a cypher key that was itself encrypted, and only the protagonists know where the key is.
- In the Donald Duck story "Sagmore Springs Hotel", Donald, as a Hotel Manager, accidentally locks the combination to the hotel safe inside the safe. In his attempts to open it, he ends up devastating the entire hotel and destroying his uncle's important cheque.
- An Achille Talon story has an emergency phone protected behind a glass that must only be broken with a hammer that is also behind the glass. This causes a breakdown to the policeman who wanted to use it, while another character attempts to comfort him by saying it probably prevents a lot of hammer thefts.note
- In the first Back to the Future movie, Marty is thrown into a car trunk by Biff's goons. The car belongs to one of the members of the band that was playing at the dance, who chase them off. The band tries to get Marty out, but the keys are in the trunk. This becomes a plot point later when the band manages to free Marty, but the guitarist slices his hand as he does it, forcing Marty to take over at the dance.
- A similar moment happens in The Whole Ten Yards.
Lazlo: You locked my son in the trunk?Oz: No! No, sir. He locked himself in the trunk.Lazlo: [pause] This I believe.
- In the Joss Whedon version of Much Ado About Nothing (2012), Nathan Fillion, playing the fuzz, has this happen to him.
- In the Hugga Bunch Made-for-TV Movie, the villainess, Queen Admira, stays young by eating young berries, which grow on a tree she keeps locked under a glass dome. When the heroine comes to take some young berries for her grandmother, Admira catches her in the act. In her hurry to leave, the heroine accidentally leaves the key for the dome on the ground by the tree, and as the dome descends, Admira lunges toward the key, but is too late.
- In Little Monsters the heroes are trapped in a locked room by the villain. After MacGyvering a way for Maurice to be reduced to a pile of clothes and slid under the door, once on the other side he says:
Maurice: Any of you freaks know how to pick a combination lock?
- Although he's simply joking and opens the door a second later.
- This exchange from Space Balls:
- (Guard shoots the lock on the Winebago)
Dot: Open the door!Barf: I can't, the lock is fused!Vespa: What about this door?Barf: Its locked!Vespa: Where are the keys?Barf: Inside!Vespa: Oh, great!
- (Guard shoots the lock on the Winebago)
- Played for Drama in The Bourne Legacy. When one of the scientists locks the door to a top secret lab and starts shooting his colleagues, an armed security guard responds, only to be told that everyone who knows the access code is already in there with the killer. By the time another guard arrives with a master key, everyone's dead except for a Sole Survivor.
- World War II. Hitler hears of the Staff of Moses, which can make the seas part. If the Germans can get their hands on it, they can invade England by land. Where is the staff? In the British Museum.
- In Blå Tornet, the Guardian has been sleeping on the High Altar for over a thousand years. There are a lot of prophecies about how a chosen one will one day wake him. In the meantime, one of the worst blasphemy someone can do is to touch the Guardian's holy sleeping body. It turns out that they artifact needed to wake the Guardian is in fact inside the altar: Only a blasphemer can heal the horrible wrong that happened so long ago, and lead the civilization back on the quest the creators had originally intended.
- There's a recurring gag in Thief of Time about "opening the box with the crowbar you will find inside". The solution is get some help; in the literal example early on, Igor is inside the box with the crowbar and hands it to Jeremy through the slats.
- In Jingo the Bursar has locked himself in the Unseen University safe and taken the key with him. "It's not even as if there's a keyhole on the inside".
- In Going Postal, Vetinari plays mind games with condemned criminals—if they use the spoon they get with their gruel to try and dig a stone block out of the wall as part of an escape attempt (ruining the spoon in the process), they finally pull the block out only to find a little alcove behind with a shiny new spoon in it.
- Guards! Guards! has an interesting example. Vetinari is locked in the dungeon by Wonse after the dragon becomes King, and when Vimes manages to break in and find him, he realizes that the dungeon has a complicated locking mechanism on the inside so that Vetinari is, at that moment, the safest person in the city. He also, of course, has a key to the dungeon, and promptly uses it once the dragon is defeated.
- A fairly standard situation in the Locked Room Mystery is for the police to have to break into the Locked Room, because the key is inside with the deceased.
- Subverted in a short story by Isaac Asimov, where people are searching for an uranium asteroid an illegal miner found, and due to the miners dying in an accident, all they have is a statement by a silicon based alien that the coordinates are "on the asteroid" (the alien died right after saying that). In the end it turns out that the alien wasn't particularly up to date in astronomy, and the coordinates were actually on the ship - hidden among the registration codes of the equipment.
- A Song of Ice and Fire: As it turns out, to solve a prophecy about how to get dragons back into the world so you can be very powerful through controlling them again... You kind of need to remember enough about how to incubate dragon eggs to hatch them successfully, first, to get what the clues in the riddle were going on about. Easy. Not. Alternatively, you could just totally luck out by hitting on the actual combination randomly without meaning to solve the thing. Then you just need to start experimenting on the control bit once you have dragons to aim at a lot of people unlikely to be willing to just let you do things. As, how to train those dragons has also been kind of forgotten, too. Um. No wonder the Targaryens repeatedly hit problems with trying to force that prophecy open with the equivalent of a crowbar...
- On two separate occasions on I Love Lucy, Lucy gets locked in a meat freezer and a steamer trunk. Both times, she has the key to the lock.
- Corner Gas:
- Hank had a lockbox with a combination lock. One of the things inside the lockbox was a notepad where he wrote down important stuff he needed to remember... such as the combination to the lock.
- Hank once locked his keys in his truck. He had a great deal of difficulty trying to unlock it with a coat hanger, until Davis passed by and notified him that his passenger-side window was open.
- That happens in an episode of Get Smart too, regarding the wall safe in the Chief's office.
Chief: Have you got the new combination, Max?
Max: New combination?
Chief: Yes, according to standard security procedures we changed the combination yesterday. Do you have it?
Max: Well, I didn't memorize it, but I had the usual three copies made.
Chief: Where are they?
Max: I burned them.
Chief: Oh, yes. Of course. Do you have the Master Copy?
Max: No I don't, Chief. But I put it in a place where no one will get it.
Chief: Where, Max?
Max looks at the wall safe.
- In an episode of Caroline in the City, Del and Charlie get trapped in Del's car due to a snow plow and Charlie accidentally locking the keys in the trunk instead of an ice scraper.
- In one episode of the children's magazine show Jigsaw, the cast were given a telephone with which to summon the OO Men for their Once an Episode appearance. The telephone was in a sealed, glass-fronted cabinet, so there was also a hammer to break the glass. The hammer was inside the cabinet.
- Parodied in a 2011 episode of The Colbert Report. While discussing cloud storage, Stephen proclaims he stores all his information in the cloud, including info needed to answer the security questions when forgetting his password to the cloud.
- One episode of Fraggle Rock had Doc and Sprocket acquiring a locked trunk and spending the entire episode trying to get it open. When they finally do, all that's inside is the key.
- An episode of Cheers had Woody trying to install a VCR when someone handed him the instructional video that came with it. Woody of all people incredulously asks, "We hook it up. . .and then we watch the video on how to hook it up?!"
- One strip of The Far Side had a pair of aliens trapped on Earth. As a crowd of curious humans approaches them, one of them says to the other "Well, here they come. You locked the keys inside, you do the talking."
- This is basically what makes some deals of Solitaire unwinnable. If the cards onto which you'd need to move a face-up card all happen to be face down behind it, then they might as well be keys on the wrong side of a locked door.
- Likewise, unwinnable layouts in Mahjong Solitaire result when needed tiles are trapped between tiles that can't be accessed without them.
- Similarly, unwinnable games of Freecell, where the cards you need are locked underneath cards you can't move anywhere.
- A common tool in Metroidvania design, for collectible powerups (such as missile pack expansions): put the powerup behind the obstacle that requires that powerup to bypass. Rather than being used for comedy or drama, this has a more practical game-design purpose, which is to prevent the player-character from picking up an item too early but still being able to display it to the player. Basically, you can see it now, but you'll get it later, after you get the first pack of missiles from somewhere else.
- Also combined with Door to Before. The one you can see may be your first, but you can only get to it from the other side by following a long hidden path. Once you have it you can remove the obstacle and be back where you started without having to backtrack the long way.
- Invoked & defied in Quest for Glory V. Your room at the inn has a storage chest, and you can put your room key in it. However, you cannot keep the key there: The narrator will go on about how you "realize your mistake", and the game will automatically make you take your key back. This mechanism is still in place after you install the "mystic magnets" that will let you teleport into your room (without the key) whenever you want to.
- The Legend of Zelda:
- In A Link to the Past, there's one locked treasure chest whose only key, you are told, is inside the chest, and you can never open it. Fortunately you can drag it with you until you find a master lockpicker.
- In A Link to the Past: Randomizer, the randomizer logic explicitly averts this; but the more recent versions make an exception for the specific cases where a Small Key is the only thing behind an ordinary lock, and in the two dungeons note where the Big Key isn't required to reach the boss can have the Big Key locked inside the Big Chest, since it doesn't prevent completion of the game.
- Link's Awakening:
- An Unwinnable by Insanity example in Angler Tunnel: the door one particular Interchangeable Antimatter Key was meant to be used on has another behind it, but by making a tricky jump it could be used on a different door that didn't have a replacement behind it.
- Played with in the Key Cavern, also averting Permanently Missable Content. A hub room in one part of the dungeon had four locked doors. Three of them were dead ends that also contained a key (which could be used on one of the remaining locked doors), while the fourth allowed the player to proceed (but did not give the player a key, so the other doors accessible from the hub remained locked). Near the end of the dungeon, an extra key could be obtained to access any locked rooms the player hadn't entered.
- At one point in Skyward Sword, a key is held by a Mook on the other side of some bars. The solution is to use the whip to grab the key.
- In Minish Cap, Talon lost the key to Lon Lon Ranch, and the spare key is inside the house. The solution is to shrink down to Minish size, enter the house through a small hole, pick up the key inside and bring it to him.
- Breath of the Wild:
- The shrine containing the bomb rune is surrounded by walls, and the gate is blocked by a giant rock that can only be destroyed by... bombs. It serves as a reminder to players of previous Zelda games that in this one, just climbing over the wall is a viable option.
- A shrine has a literal example, where a chest containing the key you need to get into a cell is inside the cell. The solution is to shoot a burning arrow through the cell's bars into the chest, which is made of wood. Once the chest burns up, you can use the Magnesis rune to pick up the key.
- The upper reaches of Death Mountain are so hot that Link will catch fire the instant he enters the hot zone, and rapidly start losing health as a direct consequence. Fireproof Elixirs, which negate this effect, can be bought at Eldin Ranch or off of Goron merchants at lower altitudes, but the very nature of the game means you could very well not approach from that direction, and even then the elixirs don't last forever. Fireproof Lizards and Scorchwing Butterflies exist to make more elixirs, and Flameguard armor can be bought in Goron City to protect from the extreme heat... and both are found in the ultrahot parts of Death Mountain. Have fun.
- Similarly, while still on the Isolated Plateau, you need frost resistance to get to one of the shrines. You can either learn how to craft frost resistance food at this early stage, and also receive a frost resistance armor as a reward, or if you can manage to make it all the way to the highest point in the cold zone (by building lots of camp fires along the way) the Old Man will reward your tenacity with the same piece of armor.
- In Adventure, on the hardest difficulty, the items were distributed in a kind-of-random manner, which occasionally resulted in the gold key being locked in the gold castle. Despite entering the gold castle being a necessary step in completing the game (the last step, in fact), this did not make the game unwinnable, as sooner or later the bat would fly in and take the key out.
- In Zork: Grand Inquisitor, there is a glass box ("In case of adventure, break glass") containing a spell scroll, a sword and a hammer. It can be easily opened, but the clamp holding the sword will not let go. The obvious solution is to open the box, take the hammer, close the box, break glass. Then the clamp lets go and you can take the sword.
- In the NES port of Metal Gear, the keycard required to enter Building No. 4 is inside the building itself. This requires Snake to get captured on purpose in order to get inside said building.
- A similar situation occurs in Snake's Revenge when the player reaches the entrance of the first enemy base. Only this time it's one of Snake's comrades who allows himself to get captured, so that Snake can sneak in undetected.
- The first level of Mystery of Time and Space has the key in the keyhole on the other side of the locked door. To get it, you have to slide a poster underneath the door and then push something small enough through the keyhole to make the key drop onto the poster, which you can then retrieve.
- The Interactive Fiction game Savoir-Faire has one locked door where you can see the key through the keyhole. The solution to unlocking this door is more creative than the usual ones, due to the game world's Functional Magic which lets you "link" similar things to each other so that doing something to one of them will similarly affect the other: link the key to your sword (it's ornate enough to allow the link) and then turn your sword in its sheath. Voila, an unlocked door!
- Starship Titanic has a circular version - in order to obtain a hammer, you need to press a button with a long stick. However, in order to obtain a long stick behind glass, you must break the glass with a hammer. Fortunately, there's a parrot perch that you can use in place of the long stick.
- Ratchet & Clank: Going Commando has a similar circular version. On one planet there is a wrench upgrade in a glass case with a "use wrench to break glass" note attached. Nearby in another glass case there is a rock with a "use rock to break glass to get wrench to break glass to get rock" note. As Clank tries to figure out the puzzle, Ratchet just smashes the wrench's case with his current wrench and takes it.
- BioShock plays this straight early in the game. The head dentist has been killed and thrown through his office window, and the only way to get in is to use the Telekinesis Plasmid to get his key off the wall behind the window.
- Ancient Domains of Mystery: There's an intentionally useless item called the scroll of cure blindness. You can't read scrolls when you're blind. (It has some other, more creative uses, however.)
- When The Angry Video Game Nerd needs to open the plastic case around a Tiger Electronics wristwatch game, he gets a pair of scissors from the Bullshit Man, who complains about needing a second pair of scissors to open the plastic packaging around the first pair.
- Averted in Stuart Ashen's review of the Packbuster (a multitool for opening the packaging around products). The blister pack has a notch cut into one corner so you can open it without using scissors or the Packbuster. As Stuart puts it: "Extra bonus points for that; that is good. There's nothing like buying some sort of device for packages and not being able to get in the package."
- Zoë's first line in Sluggy Freelance is "Help! I need a phone! I locked my keys in the car with the engine running!" This is also referenced later when she temporarily moves to a place with normal people. (Oh, and Clem.)
- In Goblins, the Key of Darkness is inside the locked Well of Darkness because the adventurer who carried it in was killed by a trap.
- Subverted in Tower of God, episode 295: the Ten Bosses of the Name Hunt Station are trying to keep the protagonists from finding a certain key by having one of their number keep it hidden in a room that can only be opened with the same key. It turns out that that part doesn't really matter, though, since the room can't be locked from the inside.
- Parodied in the Family Guy episode "Petarded", where a flashback shows one incident where Peter locked his keys outside his car, trapping himself inside.
- In one version of the backstory for He-Man and the Masters of the Universe (1983), Prince Adam was questing with Teela for what would later become his magic sword. Wielding this sword was the only way to enter Castle Grayskull. And yes, the sword was inside the castle.
- In a cartoon episode of Lucky Luke, the usual criminal Dalton Brothers were trying to be honest, and to have a honest work, they open their own bank. At one point Averell Dalton is commanded to open the safe, but he can't remember where the key is, so he opens the safe with dynamite. It turns out that the key is inside, and Averell closed it in there "for safety". Joe Dalton is not amused.
- In What's with Andy? episode "The Great American Lock-In", Andy reverses the locks in the front doors of his school, then lures in Lik and Leech. Unfortunately, he has dropped the keys outside of the school.
- In the Star vs. the Forces of Evil episode "My New Wand", Star's wand goes crazy and seals itself in her closet along with the spellbook. Since Star unlocks the closet with the wand, this presents a problem. She has to learn to channel magic without the wand's help to solve the problem.
- In one episode of Phineas and Ferb, Dr. Doofenshmirtz finds the door to his truck won't close. He spends sometime struggling with the door, finally gets it shut and locked, and then looks in through the window:
Doofenshmirtz: "Those are my keys, aren't they?"
- Played in The Simpsons episode "Marge Vs The Monorail, where a scientist said to Marge the monorail "better to have a damn good conductor". Gilligan Cut to Homer trying to pry open the monorail's cockpit door because he locked his keys in there.
- The doors of many apartments and hotel rooms behave like most padlocks: The key isn't necessary to lock them (simply closing them is enough), making it very easy to lock the keys inside. Dorm rooms as well, as many a college student who forgot his key when he goes to take a shower can attest to.
- Many cars avert this by making the front doors require the key to be locked from the outside (by disabling the "lock while open" feature). One can still lock self out using the back doors, but you'd almost certaintly have to be doing it on purpose.
- In his memoir Carrying The Fire, Apollo 11 astronaut Michael Collins devotes some time to explaining why good cockpit design is important. He describes an example of bad cockpit design: there used to be an Air Force trainer with a placard mounted on the canopy rail that listed all the steps of the ejection procedure. Unfortunately, the first item on the list was jettison the canopy.
- Many trains in Great Britain are provided with little hammers that have a notice saying that in the event of an emergency, the hammer should be used to break the windows of the train. The little hammer is always in an little box with a transparent cover and no way of opening the box or breaking into it. Many travelers have wondered how they are supposed to break the glass to get the hammer that allows them to break glass.note