How do our brains wake up?

How do we go from sound asleep to awake in the blink of an eye?