def on_key_release(self, key, modifiers):
    if (not self.mouse_captured):
        return
    if (key == pyglet.window.key.D):
        self.camera.input[0] -= 1
    elif (key == pyglet.window.key.A):
        self.camera.input[0] += 1
    elif (key == pyglet.window.key.W):
        self.camera.input[2] -= 1
    elif (key == pyglet.window.key.S):
        self.camera.input[2] += 1
    elif (key == pyglet.window.key.SPACE):
        self.camera.input[1] -= 1
    elif (key == pyglet.window.key.LSHIFT):
        self.camera.input[1] += 1
def on_key_release(self, key, modifiers):
    if (not self.mouse_captured):
        return
    if (key == pyglet.window.key.D):
        self.camera.input[0] -= 1
    elif (key == pyglet.window.key.A):
        self.camera.input[0] += 1
    elif (key == pyglet.window.key.W):
        self.camera.input[2] -= 1
    elif (key == pyglet.window.key.S):
        self.camera.input[2] += 1
    elif (key == pyglet.window.key.SPACE):
        self.camera.input[1] -= 1
    elif (key == pyglet.window.key.LSHIFT):
        self.camera.input[1] += 1