Add remove trailing shortcut key

If use putty like terminal, session setting should change `xterm` mode.