Need help with top down movement and changing directions with it

Godot 4.2.2

I’m trying to make A Five night’s at Freddy’s fan game and I need help with the top down movement. And also I want it to flip H so that when it moves the opposite way from the animation it flips! please help me!

I replaces ui_up/down/left/right with, w = up, s = down, a = left, and d = right

Please help me!