Build a Drum Machine - Step 9 failing, even when it works

Tell us what’s happening:

Test 9 keeps failing, even though when I press the corresponding keyboard buttons, it plays the sound.

Because I’m not sure, if I’m allowed to display my code (since it’s a certification) I didn’t include it in here, but can show snippets if asked.

What my code does is, it uses a keydown event that scans for the keypress, and matches it against a regex which includes [qweasdzxc] and then it stores it inside “audio”. I then play the audio and it works, but test 9 doesn’t allow it.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0

Challenge Information:

Build a Drum Machine - Build a Drum Machine

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-drum-machine/6762ec275cef87635acc4fe3.md at main · freeCodeCamp/freeCodeCamp · GitHub

I solved it myself, for some reason you need to target the whole document, when scanning for keydown, I did it with the html tags instead.

for next time, if you need help, please post your code, even if it’s a certification project

because it is impossible to help you without seeing your code