def keyboard(self,key, x, y):
        ## Looking
        if key == "a":
            self.camera_yaw(np.pi/(self.look_granularity))
        elif key == "d":
            self.camera_yaw(-np.pi/self.look_granularity)
        elif key == "w":
            self.camera_pitch(-np.pi/self.look_granularity)
        elif key == "s":
            self.camera_pitch(np.pi/self.look_granularity)
        elif key == "e":
            self.camera_roll(np.pi/self.look_granularity)
        elif key == "q":
            self.camera_roll(-np.pi/self.look_granularity)
        ## Moving
        elif key == "W":
            self.camera_move(self.movement_granularity * 100.0)
        elif key == "S":
            self.camera_move(self.movement_granularity *-100.0)
        elif key == "A":
            self.camera_move(self.movement_granularity * 100.0, axis = 2)
        elif key == "D":
            self.camera_move(self.movement_granularity * -100.0, axis = 2)

        elif key in ("R", "r"):
            self.camera_reset()


        elif key == "+":
            self.movement_granularity *= 0.8
            self.look_granularity /= 0.8
        elif key == "-":
            self.movement_granularity /= 0.8
            self.look_granularity *= 0.8
        elif key in ("x", "y", "z"):
            self.set_up_axis(key)
        print(key)
        pass
dataset/ETHPy150Open grantbrown/laspy/laspy/glviewer.py/pcl_image.keyboard/original