Better combined direction handling.

Now the active direction can switch depending on the current direction
you’re moving.