ector('#left'),  key: 'left'  },
        { elem: document.querySelector('#right'), key: 'right' },
      ];

      // note: not a good design?
      // The last direction the user presses should take
      // precedence. Example: User presses L, without letting go of
      // L user presses R. Input should now be R. User lets off R
      // Input should now be L.
      // With this code if user pressed both L and R result is nothing

      const clearKeys = () => {
        for (const {key} of sides) {
     