When this happens to me on Windows (with other games), I press the direction or key, that does the action twice, and it usually stops... Seems like the key up event goes missing sometimes. Maybe this will help in your case too.