Implemented the AbortCurrentAction function.

The function is not complete. There are some use-cases that have to be tested.
In any case it works for the movement and that it's what I need now.