Replace "keyup" event with "input" event