only enable input method when needed to avoid breaking hardware keyboard input