function keyDown(e) {
  if (e.repeat) return;
  if (keyStatus.hasOwnProperty(e.key)) {
    keyStatus[e.key] = true;
  }
  if (keyTapped.hasOwnProperty(e.key)) {
    keyTapped[e.key] = true;
  }
}
// User pressed a key to start an action.
User pressed a key to start an action.
User pressed a key to start an action .
function keyDown(e) {
  if (e.repeat) return;
  if (keyStatus.hasOwnProperty(e.key)) {
    keyStatus[e.key] = true;
  }
  if (keyTapped.hasOwnProperty(e.key)) {
    keyTapped[e.key] = true;
  }
}
function keyDown ( e ) { if ( e . repeat ) return ; if ( keyStatus . hasOwnProperty ( e . key ) ) { keyStatus [ e . key ] = true ; } if ( keyTapped . hasOwnProperty ( e . key ) ) { keyTapped [ e . key ] = true ; } }
User pressed a key to start an action.
User pressed a key to start an action .