How to detect when someone pauses on a textfield [closed]

I need to fire an analytic event when someone searches the list of items using a text field on a page. The problem is as they search, the returned items gets updated. I don’t want to trigger the analytic for every letter that is searched because that’s too noisy. How can I wait for the user to pause on the text field to trigger the analytic?