How do I make a 4-way object ... When you touch a wall, stop

Well, it’s a non-platform game
And that hurts me because I can’t keep up with the game …
If the ponds help me in the game credits
To those who help me …

what do you mean “when you touch a wall”?