Click the gray search box, then use buttons and keyboard to type. Click done to finish. Shift only works on letters. For example, shift + 0 will be 0, not ). It lags A LOT, but it was the best I could do. You can hold down keys.
Thanks to @k0stya for making the key pressed detector a lot faster (mine was way too slow): https://scratch.mit.edu/projects/443655478/editor/