The game you're thinking of is called "Old Hotel." In it, you check in, get a key to your room, and can wander around to visit the other rooms, exactly as you described.