Use `input`-event instead of `change keyup`-event

The `input`-event is triggered when the contents of a field change, even when you paste something with the mouse. This also eliminates the event firing multiple times when nothing changes when you use, for example, the arrow keys.