);
        if (!keyName) {
          return;
        }
        setKey(keyName, pressed);
      };

      addKey(37, 'left');
      addKey(39, 'right');
      addKey(38, 'up');
      addKey(40, 'down');
      addKey(90, 'a');
      addKey(88, 'b');

      window.addEventListener('keydown', (e) => {
        setKeyFromKeyCode(e.keyCode, true);
      });
      window.addEventListener('keyup', (e) => {
        setKeyFromKeyCode(e.keyCode, false);
      });

      const sides = [
        { elem: document.querySel