def METHOD_NAME(self, arg):
    """Handle the 3D scene events.
    This is installed as an EventCallback in the Inventor view.
    Parameters
    ----------
    arg: dict
        Dictionary with strings that indicates the type of event received
        from the 3D view.
    """
    if arg["Type"] == "SoKeyboardEvent":
        if arg["Key"] == "ESCAPE":
            self.finish()
    elif arg["Type"] == "SoLocation2Event":  # mouse movement detection
        if self.active:
            (self.point,
             ctrlPoint, info) = gui_tool_utils.getPoint(self, arg)
        gui_tool_utils.redraw3DView()
    elif arg["Type"] == "SoMouseButtonEvent":
        if arg["State"] == "DOWN" and arg["Button"] == "BUTTON1":
            if self.point:
                self.active = False
                Gui.Snapper.off()
                self.node.append(self.point)
                self.ui.textUi()
                self.ui.textValue.setFocus()