Using the last position to get the angle of motion isn't suitable in this case since from a stop the angle of motion will always just be 0. It needs to be moving for one frame to get a direction. However, notice that the angle of motion is connected to the object's angle and the input. So for example you could do this:
up arrow
--- angleOfMotion = sprite.angle
down arrow
--- angleOfMotion = sprite.angle+180
strave left
--- angleOfMotion = sprite.angle-90
strave left
--- angleOfMotion = sprite.angle+90