tl;dr: key presses can trigger all kinds of things: form inputs, browser scrolling, and app-specific keyboard controls, to name a few. Given this, writing code to handle key presses might be more complicated than you think. I built a tetris game. Its source is on GitHub. It’s built using React…