Replace keyup event with input event even it works on pasting text via context menu