private void inputHandling() {
    	if(Keyboard.isKeyDown(Keyboard.KEY_SPACE) && !spaceWasPressed){
    		Mouse.setCursorPosition(Display.getWidth()/2, Display.getHeight()/2);
    		Mouse.setGrabbed(!Mouse.isGrabbed());
    		spaceWasPressed = true;
    	}
    	else if(!Keyboard.isKeyDown(Keyboard.KEY_SPACE)){
    		spaceWasPressed = false;
    	}
        if(Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)){
            running = false;
        }
        if(Keyboard.isKeyDown(Keyboard.KEY_F1)){
    		GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE);
        }
        else if(!Keyboard.isKeyDown(Keyboard.KEY_F1)){
    		GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_FILL);
        }
	}