Chaotic dynamics and the GOE-GUE transition