Audio Trigger with Character Movement,Audio Trigger on Character Movement

Hello everyone, I’m new to unity and I have a big problem for me. The audio is suppose to play if my character will move but unfortunately it’s not working. For Example if my character will fly-up it will play specific audio and if my character will fly-down it will specific a different audio. My character movement is triggered by keycode and it’s working but the audio is not playing. I created another script for my audio you can see it below and please if there is a mistake correct me so I can finish my 1st game.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AudioSource;

public class PlayerSound : MonoBehaviour
{
public AudioSource AudioUp;
public AudioSource AudioDown;

private void Update(){
 if (Input.GetKeyDown(KeyCode.UpArrow)) {
     AudioUp.Play();
     
     if (Input.GetKeyUp(KeyCode.DownArrow)) {
         AudioDown.Play();
     }
 }

}

Add your audio as clips in the inspector then play the required clip in the AudioSource. AudioSource can be left blank/empty, the script will create one if one not present.

using UnityEngine;

[RequireComponent(typeof(AudioSource))]
public class PlayerSound : MonoBehaviour
{
    public AudioClip audioUp;
    public AudioClip audioDown;

    private AudioSource audioSrc;

    private void Start()
    {
        audioSrc = GetComponent<AudioSource>();
    }

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.UpArrow))
        {
            audioSrc.clip = audioUp;
            audioSrc.Play();
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow))
        {
            audioSrc.clip = audioDown;
            audioSrc.Play();

        }
    }
}

Thank you for answering my question and sorry for my late responds it’s work thank you so much.