Dualities and non-Abelian mechanics