The reticular formation plays a key role in which of the fol…