Aye quats OUGHT to solve it, however I've had maya's quaternion setup CAUSE this problem also, and had to manually change the curve interpretation to Euler. The other suggestions are good too, check/change rotate order, fi that doesn't help, try switching the curve interp type in either the preferences, or the graph editor…