tring to get the entity to turn only while it moves forward or backwards?

just a bit confused on the limited angles and what your trying to get.