At some points during the game a blue ghost will charge at you, simply follow the movement on screen to dodge the attack. If you get hit don't worry to much as there will be more then 5 chances to get this and you can always replay chapters.
This happens in all 3 of the doors.