Press the shutter button to stop a running script.
If the display is blank, press the <ALT> key to exit CHDK and then press the "DISP" key a couple of time to restore it.
Alternatively, you could modify the script to trap any key press and exit the script after first turning the display back on.