detect a pause on writting on input withpout key up code example
Example 1: stopped typing jquery
var timer = null;
$('#text').keydown(function(){
clearTimeout(timer);
timer = setTimeout(doStuff, 1000)
});
function doStuff() {
alert('do stuff');
}
Example 2: run javascript when typing
<input type="text" oninput="myFunction()">