diversion
Something that distracts you from what you were doing.
A diversion is something that takes your attention away from what you were focused on, often something more enjoyable than the original task. When a magician waves a colorful scarf with one hand while secretly palming a coin with the other, the scarf is a diversion. When you're supposed to be doing homework but keep checking your favorite website, that website becomes a diversion from your work.
Diversions can be deliberate tricks or simple entertainment. Someone might create a diversion by shouting “Fire!” to distract security guards while an accomplice sneaks past. But the word also describes pleasant ways to spend free time: reading a novel might be a welcome diversion from studying, or a family game night could provide a fun diversion after a long week.
The word also means redirecting something along a different path. Road crews might create a diversion (also called a detour) when they close part of a highway for repairs, sending traffic along alternate routes. A river diversion channels water away from its natural course, perhaps to prevent flooding or to supply a reservoir.
Notice how all these meanings share the idea of turning away from an original direction or focus, whether that's your attention, traffic, or flowing water.