Updating key template file