Switch to NSTextInputContext from deprecated NSInputManager