I use unity 3D with c# and i made cube that jumps and moves with forward force and it can go in A and D directions
and when it goes forward i try jumping and moving cube starts rotate Like this:
There’s a lot of factors that go into what happens when you apply a force to an object. You haven’t really described your issue very well or included any of your code, so it is hard to speculate. Just from your images though it looks like your cube rotated around its Y axis. You can prevent that by freezing Y rotation on the rigidbody.