title: Detect spacebar press when no text inputs are focused
body: <p>I want to use JavaScript to detect when the spacebar is pressed. I want to exclude all events in which any input is focused. Is this possible with pure JS?</p>
  
  <p>Note: The main point of this question is excluding all events in which an input is focused.</p>