Add the 'typing detector' in your page, assign the ID of the input element you want to detect the typing and use the 'typing' attribute of the element in order to know if user is typing or not.
That's easy! :)
Types
This plugin can be found under the following types: