Minecraft wiki entry for Creating_a_data_pack, associated text: key is a compound used to specify what item should be used for which character in pattern. This can either be specified using item followed by an item ID or tag followed by an item data pack tag.