I think the show missed out on an opportunity to do an episode where they get locked out of both apartments again so they finally get a hide a key to put somewhere nearby to use if it happens again. We had multiple episodes of Penny or Sheldon or the entire group being locked of their places and they never did an episode to address making that never happen again (like the decorative bowl by the door).
The episode could have been the group without Sheldon (who has his phone on do not disturb) getting locked out and remembering the last time they got locked out and getting the hide away key afterwards but now forgetting where it is. Whole episode is them looking under planters and in trash cans and on the roof and all over. This goes on for a long while, montage even if possible at one point.
Then Sheldon walks up the stairs, hears the situation and instead of using the key in his pocket opens the elevator door, reaches inside pulling out a magnetic lock box from the other side of it and says “the key is on the door, how hard is that to remember.” As the group stands there dumbfounded and frustrated after their hours wasted,Howard asks Sheldon “how did you stick a magnet on stainless steel, it’s physically impossible” and Sheldon replies “maybe if you knew the answer to that you’d have a doctorate and Nobel prize instead of neither” and walks inside. Penny then calls after him, “why didn’t you answer your phone. We’d been calling you for hours.” And Sheldon says “I didn’t want to be disturbed.” “What were you doing?” “Not wanting to be disturbed” and sits in his spot as the show transitions out for the last ad break.
The last blip before the credits is the trio in the living room and Sheldon being asked by Penny again what he was doing when he didn’t want to be disturbed and him reiterating the exact same answer to her while it flashes to his remembering sitting in one of those little trains in the mall with a conductor hat on and a “now hiring sign” laying on the ground as he passes by tooting the train horn while his phone is shown glowing in his pocket with dozens of notifications of missed calls and texts and the Apple ringtone being drowned out by him deliberating tooting the horn anytime it goes off.
Sorry, had a very long drive today and the entire episode played out in my mind while I was driving and it just fit too perfectly to have not been an episode. The first episode and the first time Sheldon sleeps with Penny and Penny seeing Sheldon without pants were because of getting locked out of their apartments.