You’ve created one audioRef but yet you are assigning it to every button. I’m guessing that is causing your problem.
You actually have access to the event details in the handler function you define. It will automatically be passed in as the first argument to the handler function. You can access it by adding the parameter to your function definition: