Make sure to save hardware key dialog after resetting key.