Hal Blumenfeld once got out of a swimming pool and couldn't find his watch. He was certain he'd left it at the shallow end. He found it at the deep end. He'd moved it himself while swimming, with no memory of doing so. "I had no idea that I had done that," he says. "But I clearly did." This everyday mystery sparked a decade-long research journey that finally answers a question scientists have debated for over 130 years: what happens in the brain when we become aware of our own actions?

Blumenfeld, a neurologist at Yale School of Medicine, teamed up with David S. Jin, then a Ph.D. student, to settle a debate that began in the late 1800s. Back then, two psychologists—William James and Wilhelm Wundt—disagreed about how we know what we're doing. James believed we become aware through sensory feedback after moving. Wundt argued awareness comes from the brain's planning signals before movement even begins. Neither could prove their case, so the argument dragged on for over a century.

Jin designed a clever experiment to finally test it. He had 67 participants play Rush Hour, the sliding-block puzzle game where you shift toy cars around to free one trapped vehicle. While playing, participants also watched background videos they were told to memorize. Periodically, the game paused, and players had to recall their last move and rate how confident they felt about it.

Using electroencephalography (EEG)—a way to measure brain activity through sensors on the scalp—the researchers found something surprising. Both James and Wundt were right. Brain signals changed both before and after movement in trials where people felt aware of their actions. A signal tied to planning movement, called the pre-movement positivity, was stronger in aware trials. So was a signal called the N140, which processes bodily sensations after the fact. Neither signal alone was enough. You need both.

But the researchers spotted a third factor neither historic theorist had considered: alertness. As participants played longer, their pupils grew smaller—a sign they were getting bored, tired, or distracted—and their awareness of their moves dropped right along with it.

"Consciousness is so important that it makes sense in evolutionary terms that there's going to be redundancy," Blumenfeld says. "Many things are influencing how aware or unaware we are of what we do."

The study reframes unawareness as a feature, not a bug. Jin, who has epilepsy and has performed complex actions like playing piano during seizures with no memory afterward, sees this firsthand. "To be aware of your actions all the time would really suck," he says. "Perhaps it is unawareness of action that allows for daily life to proceed smoothly. Imagine being a musician and having to think out every note moment by moment." So the next time you drive home on autopilot or lose track of a minor action, your brain is doing exactly what it should.