Write keyword file to output folder