In the process, I didn't think about the touchpad at all, I think I'll fix it. No, snakes don't use IK in the usual sense, there are no ready-made animations. The snake itself moves each part of the body with the necessary force and in the right direction, which gives us such an intermittent, funny movement, in our opinion. Although it contains a significant number of bugs;)
Thanks for the comment!