A teenager with severe cerebral palsy who wrote a book using his eyes has urged teachers not to underestimate their pupils.