created my own scan function that doesn't bork if the user types unexpected junk when waiting for an 'enter'