You're driving down the road to school, fully awake, paying attention, staying in your lane when suddenly, you think, "What am I doing?" And look around in a slight state of shock for a second, and then you're back to normal.
Or...you're walking to your car from the bus, holding your keys, like always, and suddenly you think to yourself, "What am I doing? I can't drive." And you look down at your keys in surprise, then just as quickly, you're back to normal. Except not quite, because you can't believe you just had that thought.