Thank you for your aid Tomcat, your fix helped out but two more errors showed up.
line 7 (Expected conditional expression after "if".)
if: Input.is_action_pressed("ui_up")
line 9 (Expected conditional expression after "if".)
if: Input.is_action_pressed("ui_down")
Why does this code work on the youtubers end without need for conditional expressions and what conditional expressions should I use in this situation?