If you use a sheet of gelatin, just add it to the pudding and mix well. And if you use powder, heat the gelatin with milk until it dissolves (do not bring it to a boil!), strain and add to the pudding.
Place the pudding pan in a bowl of cold water to cool quickly, stirring occasionally.