Error in adding free-ranging participant text to online experiment

What are you putting to upper case?

Yes, I want whatever they are writing and pressing shift to be in upper case(normally the first letter).

Is like this what you mean?

    } else if (theseKeys.indexOf('shift') > -1) {
        textAdd.toUpperCase();

Screen Shot 2020-06-21 at 8.58.53 PM

I did check your crib sheet and this is what appeared, but I think I might be missing something (I tried with and without the parenthesis):

Object.prototype.upper = "".toUpperCase;

If you define .upper in code_JS then you can use it in both Python and JavaScript.

You need to add setText and reset textAdd to undefined. You might need to setText with textAdd[-1].upper() if the letter pressed is the last item in textAdd.