does not exit on keypress