This could be have been a Mysterious Traveler or Escape episode.
Right! Keith posted the link to “Three Skeleton Key” in comment #38. :-)
Oh well. Nobody gets it but us. I gave a link so maybe someone will listen.