Report as inappropriate

I don't know how that button is programmed in the firmware, Anycubic use their own firmware, so I need to know what code they use. This code work with confirmation button code from Marlin.
Did you try my gcode on your i3 Mega? If it doesn't work you can stop the printer as normal print.