most of his tutors had been sufficiently unnerved by the sight of the king occasionally perched on top of a door that they raced through such lessons as they had and then locked themselves in their rooms .