Grab mouse using OpenGL

reference for setGrabbed() function in LWJGL 2: Mouse (LWJGL API)