Six extraocular muscles allow the eyeballs to move: the inferior, superior, lateral and medial rectus muscles together with the inferior and superior oblique muscles. Vision Aware adds that the muscles that move the eyeballs are attached to the sclera, a white outer coating that covers the eyeball.
Contraction of the lateral rectus causes the pupil to look outwards, while the medial rectus turns the eyeball inwards. The inferior rectus focuses the eyeball downwards, whereas the superior rectus pulls the eyeball upwards. The inferior and superior oblique muscles are attached to the eye at an angle and aid in rotating the eyeball.