Parses a file and process keywords