discover text input and other events