Listen if your hear breathing at the door, if so close it, if not the shine your flashlight which can be accesible by clicking the screen. If you don't hear breathing, don't close the door. Wait 3 seconds after checking a door to listen for a single exhale. If you hear it shut the door for a few seconds or until you hear retreating footsteps. Flick the mouse back to look at the bed.
Game is very laggy so I apologize for that and it may crash. Welcome to your nightmare! You are currently a child who is trapped home with his nightmares. Your job is to defeat those monsters!