Back-and-forth movement of a body part is generally accomplished by antagonistic muscles.
This arrangement works with either an endoskeleton or an exoskeleton.