2D Animation taking the longer route when rotating

Hey,
I am trying to animate a 2d characters legs. Both the legs are separate 2d objects that are parented to the character. I am trying to animate the legs, it is supposed to be a swaying motion, but whenever I set the z rotation of the legs to anything lower than 0 instead of setting it to let’s say… -10 it will set it to 350. Which means it will do a full spin before reaching its destination.

I simply can’t understand why it is changing the value.

Here is an illustration of my issue. The orange represents the path I want it to rotate along, and the blue is the path it’s taking…
71573-untitled.png

Change the Interpolation to Quaternion.75398-untitled-1.png