Maintain direction of movement when jumping

This makes it easier to jump in the direction of travel.