system(command) until (done or user_aborted_with_keypress) quit if done; goto next step if user hit 'N' goto previous step if user hit 'P'