Changed keyup event to input event