The input event fires when the value has changed of one of this input element:
With an input
<input type="text">
document.querySelector("input").addEventListener("input", function(){
console.log("The input event has fired for the value: "+this.value);
});