Keyboard and mouse input checking now matches GLFW 3.
Sphere primitives release their vertex and index heap memory after being created.