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