It probably was the yaw damper acting up.
Uncommanded Yaw or Roll Checklist:
1. Maintain Aircraft Control With All Available Flight Controls.
2. Increase Airspeed And Reduce AOA (if required).
3. Autopilot (if engaged)...Disengage.
4. Yaw Damper...Off.