motionFunc and keyboardFunc to glut

keyboardFunc is incomplete at the moment