Bug 1043121 - Move IMESwitcher in keyboard_manager to another script

I don't think you need `switch .. case` since there is currently only one event listener on one element.