Fix inverted logic in KeyOK; close r/w options