Capture user input