Transcription task online

Hi @Mel499, you want to catch the keypress, and convert it to the right symbol. Currently I think it literally spells out the name of the symbol, e.g., "comma" for ','. Here is an example in JS - see the comma example:

if (textAdd === 'return') {
      textAdd = '';  // Add nothing
      continueRoutine = false;  // End routine (if that is what you want)
  } else if (textAdd === 'space') {
      textAdd = ' ';  // Add a space
  } else if (textAdd === 'backspace') {
      text.text = text.text.slice(0, -1);
      textAdd = undefined;
  } else if (textAdd === 'comma') {
      textAdd = ',';  // Add a comma     ////////////// COMMA EXAMPLE //////////////
  } else if (['lshift', 'rshift'].includes(textAdd)) {
      modify = true;
  } else if (textAdd !== undefined) {
      if (modify) {
          text.text = text.text + textAdd.toUpperCase();
          modify = false;
      } else {
          text.text = text.text + textAdd
      }
      textAdd = undefined;
  }