If you are using GLUT for making the window, why not use it for the mouse and keyboard events too. It has all these things built into it. Look here.
Generally, the mouse events and keyboard events are intimately linked to the window context. So, that is why any library that creates a window (like GLUT, SDL, Qt, VCL, wxWidget, etc.) also has all the mouse and keyboard event facilities as well. They aren't really separable or standalone (for instance, you can't create a window that doesn't have any handling of mouse or key events.. because how else would you close the window!).
Well, GLUT is a limited library. It is not really meant for complex applications. Why don't you use wxWidget or Qt to create the window then and render your openGL scene inside the wxWidget window, as in this tutorial. And even better for Qt.
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...