%% Image selected per Image Pickin' thread: http://tvtropes.org/pmwiki/posts.php?discussion=1485208821068514100
%% Please do not change or remove without starting a new thread.
[[caption-width-right:219:It's exactly what you need to unpack ''itself''.]]

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 PlayedForLaughs 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.

If The Key Is Behind ''And In'' The Lock, one possible solution is the PaperKeyRetrievalTrick. Otherwise HairpinLockpick, SkeletonKeyCard or ShootOutTheLock may help to resolve the problem.

Subtrope of the Catch22Dilemma.



[[folder: Anime and Manga ]]

* In one episode of ''Manga/CardcaptorSakura'', [[MacGuffinSuperPerson Tomoyo]] has been trapped in a classroom as [[spoiler: 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 ''Anime/CowboyBeBop'' 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.


[[folder: Comic Books ]]

* In the DonaldDuck story "[[http://coa.inducks.org/story.php?c=W+WDC+206-02 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 ''Comics/AchilleTalon'' 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 real life, the hammer would be outside the glass, but chained to the box.[[/note]]


[[folder: Film -- Animated ]]

* In ''WesternAnimation/TheSimpsonsMovie'', Prof. Frink has invented a drill that could cut through the dome and free them all. "It's right there, out...[[ExplainExplainOhCrap side the dome]]."


[[folder: Film -- Live Action ]]

* In the first ''Film/BackToTheFuture'' 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 ''Film/TheWholeTenYards''.
--->'''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 Creator/JossWhedon version of ''Film/MuchAdoAboutNothing2012'', Creator/NathanFillion, playing the fuzz, has this happen to him.
* In the ''Hugga Bunch'' MadeForTVMovie, the villainess, Queen Admira, stays young by [[PhlebotinumMuncher 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 ''Film/LittleMonsters'' the heroes are trapped in a locked room by the villain. After MacGyvering a way for Maurice to be [[ItMakesSenseInContext 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 Film/SpaceBalls:
** ''(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!


[[folder: Jokes ]]

* 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.


[[folder: Literature ]]

* In ''Literature/BlaTornet'', 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.
* ''Literature/{{Discworld}}'':
** There's a recurring gag in ''Discworld/ThiefOfTime'' about "opening the box with the crowbar you will find inside". The solution is [[spoiler: get some help; in the literal example early on, Igor is inside the box with the crowbar.]]
** In ''Discworld/{{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 ''Discworld/GoingPostal'', 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.
** ''Discworld/GuardsGuards'' has an interesting example. Vetinari is locked in the dungeon by [[EvilChancellor 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 LockedRoomMystery 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 Creator/IsaacAsimov, 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). [[spoiler: In the end it turns out that the alien wasn't [[ScienceMarchesOn particularly up to date]] in astronomy, and the coordinates were actually ''on the ship'' - [[HiddenInPlainSight hidden among the registration codes of the equipment]]]].
* ''Literature/ASongOfIceAndFire'': 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...


[[folder: Live Action TV ]]

* Two episodes of ''Series/ILoveLucy'' - Lucy gets locked in a meat freezer and a steamer trunk.
* Happens in ''Series/CornerGas''. Hank had a combination lock that stored the lock's combination.
** Then there was the time he locked his keys in his truck, and didn't notice that his passenger side window was down.
* That happens in an episode of ''Series/GetSmart'' 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 ''Series/CarolineInTheCity'', 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 OnceAnEpisode 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 ''Series/TheColbertReport''. 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 ''Series/FraggleRock'' 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 ''Series/{{Cheers}}'' had Woody trying to install a [=VCR=] when someone handed him the instructional video that came with it. ''[[TheDitz Woody]]'' of all people incredulously asks, "We hook it up. . .and ''then'' we watch the video on how to hook it up?!"


[[folder: Newspaper Comics ]]

* One strip of ''ComicStrip/TheFarSide'' 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."


[[folder: Tabletop Games ]]

* This is basically what makes some deals of ''TabletopGame/{{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 ''TabletopGame/MahjongSolitaire'' result when needed tiles are trapped between tiles that can't be accessed without them.
* Similarly, unwinnable games of ''VideoGame/{{Freecell}}'', where the cards you need are locked underneath cards you can't move anywhere.


[[folder: Video Games ]]

* 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.
* Invoked & defied in ''VideoGame/QuestForGloryV''. 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.
* ''Franchise/TheLegendOfZelda'':
** In ''[[VideoGame/TheLegendOfZeldaALinkToThePast 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.
** ''[[VideoGame/TheLegendOfZeldaLinksAwakening Link's Awakening]]'':
*** An UnwinnableByInsanity example in Angler Tunnel: the door one particular InterchangeableAntimatterKey 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 PermanentlyMissableContent. 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 ''[[VideoGame/TheLegendOfZeldaSkywardSword Skyward Sword]]'', a key is held by a Mook on the other side of some bars. The solution is to use the [[WhipItGood whip]] to grab the key.
** In ''[[VideoGame/TheLegendOfZeldaTheMinishCap 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.
** ''[[VideoGame/TheLegendOfZeldaBreathOfTheWild 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, [[spoiler: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 [[spoiler: 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 ''[[ManOnFire 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. [[https://www.youtube.com/watch?v=r-VX0wUwbjE Have fun.]]
* In ''VideoGame/{{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 [[BanditMook the bat]] would fly in and take the key out.
* In ''VideoGame/ZorkGrandInquisitor'', 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 [[spoiler: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 ''VideoGame/MetalGear'', the keycard required to enter Building No. 4 is inside the building itself. [[spoiler:This requires Snake to get captured on purpose in order to get inside said building.]]
** A similar situation occurs in ''VideoGame/SnakesRevenge'' when the player reaches the entrance of the first enemy base. Only this time [[spoiler:it's one of Snake's comrades who allows himself to get captured, so that Snake can sneak in undetected.]]
* The first level of ''VideoGame/MysteryOfTimeAndSpace'' has the key in the keyhole on the other side of the locked door. To get it, [[spoiler:you have to [[PaperKeyRetrievalTrick 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 InteractiveFiction game ''[[http://www.wurb.com/if/game/1821 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 FunctionalMagic which lets you "link" similar things to each other so that doing something to one of them will similarly affect the other: [[spoiler: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!]]
* ''VideoGame/StarshipTitanic'' 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. [[spoiler: Fortunately, there's a parrot perch that you can use in place of the long stick.]]
* ''VideoGame/RatchetAndClankGoingCommando'' 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 [[CuttingTheKnot just smashes the wrench's case with his current wrench]] and takes it.
* ''VideoGame/BioShock1'' 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.


[[folder: Web Original]]

* When WebVideo/TheAngryVideoGameNerd needs to open the plastic case around a Tiger Electronics wristwatch game, he gets a pair of scissors from [[WebVideo/YouKnowWhatsBullshit the Bullshit Man]], who complains about needing a second pair of scissors to open the plastic packaging around the first pair.
* Averted in WebVideo/StuartAshen'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.''"


[[folder: Webcomics ]]

* Zoë's [[http://www.sluggy.com/comics/archives/daily/19970923 first line]] in ''Webcomic/SluggyFreelance'' is "Help! I need a phone! I locked my keys in the car with the engine running!" This is also referenced [[http://www.sluggy.com/comics/archives/daily/20010908 later]] when she temporarily moves to a place with normal people. [[AndZoidberg (Oh, and Clem.)]]
* In ''Webcomic/{{Goblins}}'', the Key of Darkness is inside the locked Well of Darkness because the adventurer who carried it in was killed by a trap.


[[folder: Western Animation ]]

* Parodied in the ''WesternAnimation/FamilyGuy'' episode "Petarded", where a flashback shows one incident where Peter locked his keys ''out'' of the car, trapping himself inside.
* In one version of the backstory for ''WesternAnimation/HeManAndTheMastersOfTheUniverse1983'', 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 ''ComicBook/LuckyLuke'', 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 ''WesternAnimation/WhatsWithAndy'' episode "The Great American Lock-In", [[PrinceOfPranksters Andy]] reverses the locks in the front doors of his school, then lures in [[TheBully Lik and Leech]]. Unfortunately, he has dropped the keys outside of the school.
* In the ''WesternAnimation/StarVsTheForcesOfEvil'' 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.

[[folder: Real Life ]]

* 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 if the driver does this, then [[WhatAnIdiot they deserved it]].
* 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.