Chickens usually keep their own toenails short enough by scratching around in the dirt.
Sometimes the nails do get too long (chickens living in a cage, or confined to a coop for the winter, or getting old/feeling ill and not scratching as much.)
If the toenails get long enough that they twist...