core.js
// check if key that was pressed was the escape key or q. Quits experiment immediately
check if key that was pressed was the escape key or q. Quits experiment immediately
check if key that was pressed was the escape key or q . Quits experiment immediately
function checkForEscape() {
  key = event.key
  if (key === "Escape" || key=== "q") {
    console.log("Escape was pressed")
    openNav()
    nav.hidden = false
    clearScreen()
    rec.stopRec()
    clearTimeout(trialTimeoutID)
  }
}
function checkForEscape ( ) { key = event . key if ( key === "Escape" || key === "q" ) { console . log ( "Escape was pressed" ) openNav ( ) nav . hidden = false clearScreen ( ) rec . stopRec ( ) clearTimeout ( trialTimeoutID ) } }
check if key that was pressed was the escape key or q. Quits experiment immediately
check if key that was pressed was the escape key or q . Quits experiment immediately
// unloadJS(exp.name)