React Drum Machine Help!

Greetings,

So I’m working on the drum machine, front end libraries project, and am having some difficulty with state.

As of right now I am able to successfully update the display property of state in the component when a pad is clicked on, but can’t seem to figure out how to update the state when a key is pressed. I have a this.setState call on line 97 in the switch to update the display but it’s not working and I’m not sure how to go about this >_<

I am still a beginner to Javascript and React so please be easy on me :slight_smile:
Please also excuse the design as I’m finishing the functionality first then I plan on working on the design!

Link to project via CodePen