Anatomy

A boy presents with eye deted laterally and slightly downward. The upward gaze is impaired and medial rotation is not possible. Which nerve is involved.