How do you file for full custody of a child?

You gain full custody for a child by telling the judge you want full custody.