Receive input from the user.