I only get 7 out of 8 in Drum Machine Project

I can not pass #user story 6 which says:

When I press the trigger key associated with each .drum-pad , the audio clip contained in its child audio element should be triggered (e.g. pressing the Q key should trigger the drum pad which contains the string “Q”, pressing the W key should trigger the drum pad which contains the string “W”, etc.).

here is codepen for my code
Anyone has any idea how to do it?.

Hey, have you looked into keycodes at all yet? You can bind an event that is listening for certain key presses. It’s very similar to having an event that fires when you click a button with the mouse, just the trigger event is different.

Here is a good resource on keycodes

1 Like

Yeah, I got that and I am working on it.
Thank You!