def key_down(event):
            """Defines keyboard actions for the waypoints dialog.
            :param event: object: The event to be processed."""
            if self.root.getKey(event) == "Escape":
                gotoPanel.goto_coords = False
                self.waypointDialog.dismiss()
            else:
                Dialog.key_down(self.waypointDialog, event)
Defines keyboard actions for the waypoints dialog.
            :param event: object: The event to be processed.
leveleditor.py