key must be fixed in your code and cannot be created dynamically. It is the link between a saved value and the field that saved it. It is like an ID in the database row.
You will need to generate this yourself and paste it in your code.
Perhaps start at field_1, and increment the number for each field?