def METHOD_NAME(self, event):
    if event.key == "ctrl+z":
        self.point_plot_list.pop(-1).remove()
        self.path_plot_list.pop(-1).remove()
        self.point_list.pop(-1)
        self.current_point = self.point_list[-1]