Implement debounce for textInput event handler.