You can disable the default controls on 8direction and set up your own in events.
Right arrow key is down -> Simulate pressing right etc...
Then you can add whatever conditions you want. For example: give the player an AllowedToMoveRight boolean and you can have the conditions:
Keyboard: Right arrow key is down
Player: Is AllowedToMoveRight -> Player: Simulate pressing right
Then you can toggle that boolean to prevent walking in that direction.