When Ashika Menon gets pulled over to grab a grape while grocery shopping, her brain does something remarkable — it doesn't panic or forget what she came for. New research from the University of Texas at Austin shows that working memory, the brain's notepad for short-term information, can bounce back quickly after unexpected interruptions and reorganize what it remembers.

The study, led by researchers Ziyao Zhang and Jarrod A. Lewis-Peacock, found that our brains are far more flexible than previously thought when dealing with distractions. Published in the journal Communications Psychology, the research reveals that working memory can rapidly reprioritize what it's holding — essentially rewriting its mental to-do list on the fly.

To test this, the researchers got 50 adults to play a version of the classic Snake game, the same game that once came preloaded on old Nokia cellphones. Players had to memorize where apples would briefly appear on screen, then navigate their snake to collect them. Sometimes, a grape would suddenly pop up, forcing players to change their plans mid-game.

The results were surprising. When distractions appeared, participants didn't get confused or forget their original mission. Instead, they mentally shifted gears and focused on the item closest to their new position. Once they grabbed the grape, they quickly reorganized their memory to figure out which apple to chase next.

The researchers discovered something important about how this mental juggling works. When people get interrupted, they don't try to hold onto everything at once. Instead, their brain naturally simplifies and focuses on just one priority item — the apple closest to where the snake now sits — even if they originally remembered multiple locations. This single-item focus after a disruption seemed to be the brain's way of staying efficient under pressure.

The team also noticed that this flexibility has limits. When participants had to remember four apple locations instead of one or two, their ability to adapt to distractions dropped noticeably. The more the brain had to hold, the harder it was to reprioritize quickly.

Zhang and Lewis-Peacock noted that real life works the same way. When you're following a mental shopping list, what you prioritize depends on where you are in the store. But as soon as someone stops you to ask for help, or an item you need suddenly jumps out at you, your brain has to recalculate — and it does, remarkably well.

The findings could help explain why some people handle interruptions better than others, and might one day inform strategies to help people with cognitive challenges stay focused when life throws surprises their way.