Adds keyword mask to the header