Test case: emacs -Q M-x set-input-method RET ucs RET Type « ut » it will produce « tut ». IMO, ucs strives to be Emacs by doing the command of the faulty (unexpected) key (here « t ») while it is not needed. I propose just to remove the part that does that.