Scanner methods are tricky. Some require something be entered and will skip over white space and the Enter key waiting for input.

Try different Scanner methods for reading the input. Perhaps...