If you specifically want it to press escape rather than click the X button then I think the solution you're looking for is the "Keyboard Action" node. Although the issue I have with this node is idk what character to pass to it...I've tried "SPACE", "space", "ESC", "esc", "ESCAPE", "escape" and...