Seperation in the event listener for typing