makes a file of keys from a text file