moved the abort to the on keypress