changed .keyup() to .on() with the input event