Implement user input functionality.