A 37-year-old alcoholic is brought to the emergency room after he was found unconscious in the street. He is hospitalized for dehydration and pneumonia. While being treated, he becomes acutely confused and agitated. He cannot move his eyes upward or to the right, and he is ataxic. Which of the following is the most likely diagnosis