`setModeEnabled()` ensure that `Mode.setEnabled()` is called. 
This guarantee consistency between mode state and terminal state.