How do I get a 4-way linear movement with a slide?

You can isolate it with collision channels. Have the pawn ignore the floor.

I was unable to interrupt the movement with the above script.