remap term keys to respect shell bindings