Make commandEvent more like nsCommandEvent.