Click the flashlight to use it. Use arrow keys to move rooms. Once you know the code, click the barred window, type in the code, then grab the flashlight.
I know it's a short game, but the original game wasn't long either.