Anatomy

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