def key_down(event):
            """Defines keyboard actions for the waypoint creation dialog.
            :param event: object: The event to be processed."""
            key = self.root.getKey(event)
            if key == "Return":
                d.dismiss("Create")
            elif key == "Escape":
                d.dismiss("Cancel")
            else:
                Dialog.key_down(d, event)
Defines keyboard actions for the waypoint creation dialog.
            :param event: object: The event to be processed.
leveleditor.py