Kan. Stat. Ann. § 23-3201
The court shall determine custody or residency of a child in accordance with the best interests of the child.
L. 2011, ch. 26, § 18; July 1.