Fix for crouching/jumping switching

It's more complicated than what was initially expected... Seems to be
fixed.

Fixes #97.