Added jump_out when seeing 'end'

Input not working well, but at least can exit on 'end' now.