The function keyboard is our registered handler of key events. GLUT passes to it the key pressed as an unsigned char and the mouse location when the event occurred. We are using only certain keys as Hot-Keys corresponding to color menu choices. Thus, we use six keys and select the appropriate action based on which key is pressed. Note that upper and lower case are treated as separate keys.