fixed enable/disable im, remove unnecessary key mappings