I am not a king snake person, but ball pythons stop eating when they are stressed. Check out a care guide, and make sure your husbandry practices are on par first; for example, heat, humidity, and a secure hide. Once you are sure your setup is correct, we can start trying new methods.
Good luck, and hope this helps.