Moved opengl api functions to the robot.h file and added a keyboard function.