A physical button, activated by an electrical pulse. First, the desired G-code is loaded. Then, using the physical buttons on the machine, the work area is selected.
I've seen a machine that does that function; they've programmed it inside a macropump, but I don't quite understand where to wire it. I've attached an example.