MC 1.12.2 control hangs, what to do?

Sa
2

Whenever the keys WASD, Shift od. Space press, the impulse of Minecraft is not terminated and I keep running although I do not want it. Then I hit the cheat button and suddenly it stops. But when you press a movement button again, the whole KACK starts from the beginning. What can I do to prevent it from happening again?

Dr

Do you have mods or other installed?

Sa

Yes, Crayfish Vehicles. Does Forge react differently?