How can I detect a pause

How can I detect when someone pauses after providing input to a text field? When users see a text field, they are typing fast. I know how to detect a change event but not when they pause. Can someone help? I’m using HTML and JavaScript.