Make sure you are manually inserting the key in the proper manner.
Open notepad, copy and paste your key into notepad. Rename it "idkey.hw" (not.txt) and make sure file types say "all files", then save it to your desktop. Open the main Histwar folder and copy and paste "idkey.hw" into the folder.
That has always worked as a last resort. Let me know.