First click on the template you want. If there are multiple parts, then click on the part you want to change. When applying a flag to a part, use the left and right arrow keys to scroll through the flags. Once you have the flag you want press space (and if there are more parts, select the next part you want to change) You can change the same part as many times as you want, but to change the template you have to restart.
I coded it and made the templates, but I got the flags and hearts online. Comment what flag you want me to add.