Disable the agent in key creation and editing