Update the removal of the key to use the corrected key_file var.