Adds GLUT keyboard and mouse capture functions

- Template functions for capturing the keyboard and mouse activity via
GLUT has been added to the tree analyser. Implementation of these
functions will come shortly.