All of a sudden

Unexpectedly; in a sudden way.

She had just closed the door when all of the sudden she heard somebody knowing. She got terrified.