Control the direction of an actor through a maze

Hi there… i want to do a little minigame, that basically has 4 buttons/overlap volumes placed in the level.
When the player hits or overlaps a button it moves the actor in a single direction.

There should be 1 button for Up, 1 for down, 1 for left and 1 for right. When button is hit/overlapped the cube should go in that certain direction until it hits a wall.

The actor will be guided through a simple maze until it reaches the end.
Any help would be amazing.

Me and some people discussed something similar a while back

You would replace the key input with an overlap event for the relevant button.