I guess you can achieve this by trying the approach:
Access the textbox in ItemCreated event and attach OnKeyPress event to textbox. Pass the textbox client object and to event handler by passing 'this' as parameter. Now in the event handler, check for the length of the textbox text and invoke the filter command accordingly after a timeout (use setTimeOut() method for that).
You could get more information on filter command from here