Add Escape handling to NOMAD callbacks