You might like the (very old) game Countdown. Although it's a bit broader than just a locked room at the start.
https://en.wikipedia.org/wiki/Countdown_(video_game)
You wake up with amnesia locked in a room in an asylum, and have to figure it out from there.