Updated Generate Key Code to add File Types