New research reveals the brain sequences actions like a music box, with implications for understanding cognition and psychiatric conditions.