added pause by keystroke