It's probably not the best way - but it should work. Maybe your pacman object can detect if there's a wall up/down/left/right and when ever this changes (no longer a collision up) it looks at the SwipedUp Bool and moves up.
It's just about setting up some logic rules and checking them every time the situation changes.
If you want to go that way, make a Pacman image, add a circle collision to it. Then create four more small collision objects, one to the left of Pacman, one above etc etc. Those four object should be positioned so they can detect changes in the walls around Pacman and feed this information back to a Playmaker State Machine that is keeping track and letting the player move when appropriate.
It's messy but it'll work if you keep the logic simple
