GLUT
providea a cross platform mechanism to handle keyboard input (see, for instance
"keyboard input"[
^]). If you don't want to use
GLUT
then you have to deal with the specific
API
of your favorite platform (or use another cross-platform library).