Clean up input handling.