At what age does the foreskin pull back from the head of the penis?

Simply when you start puberty

I am a 12 year old boy and mine has just started It will do it in turns

one side of the head of penis will pull back from it giving the impression when havng an erection it will be bent at the top and then later on the other side will and at that time you will notice some changes