`keyup` will catch hits to the arrow keys and other movement keys.  Using the `input` event is better if you just want changes in the contents of the text field.

https://developer.mozilla.org/en-US/docs/Web/Reference/Events/input