I had a similar problem a few days ago, and I found react key handler, sends you to npm website but you can also install it with npm install react-key-handler.
Thank you. This didn’t really work for me. I need to read up on it to use it properly i guess. I was able to access the DOM node. But not in the way i wanted to