Keys, Queries, and Values: The celestial mechanics of attention