AUI-749 Avoid unnecessary input events and account for IME inputs