SPOILER ALERT!
For the first ending, proceed down the basement, escape the alternate, then escape through the basement exit.
For the second ending, leave through the open door on the first floor.
For the third ending, in the room where the alternate peeks his head behind the door, look in the bottom left. There is a box with a gun on it. Click it to get the gun, and proceed as normal to the end of the game.