How to detect if a player is turning around in gdevelop

im trying to detect if the player turns arounds when running fast and slows them down then back to full speed (im using horisontally fliping to make turning)

when i try to make it, it doesn’t work

How are you moving the player?