You should know how to play but if you don't the instructions are right here:
S - show in-game instructions.
L - load save point
click to go to door
mouse flick downward - go back
z - flashlight
x - shut door
if you here breathing at a door shut it. else, shine your flashlight.
shine the flashlight at the freddles on the bed behind you to scare them away.
check the closet for foxy, if he is there keep the door shut and check every so often until foxy turns into a plush.