function keyPress(e) {
  if (isStartVisible && (e.key === 'Enter' || e.key === ' ')) {
    startButton();
    e.preventDefault();
  }
}
// User pressed space or enter to start game.
User pressed space or enter to start game.
User pressed space or enter to start game .
function keyPress(e) {
  if (isStartVisible && (e.key === 'Enter' || e.key === ' ')) {
    startButton();
    e.preventDefault();
  }
}
function keyPress ( e ) { if ( isStartVisible && ( e . key === 'Enter' || e . key === ' ' ) ) { startButton ( ) ; e . preventDefault ( ) ; } }
User pressed space or enter to start game.
User pressed space or enter to start game .