Let's say we give up a pk. Can I switch my gk with a field player to face the Pk? Or, does it have to be the gk that was on the field at the time of the foul that faces the pk?

Thanks in advance for the input.