check for user input