Just click the button on the keyboard. Use the left and right keys on the keyboard to move the cursor. have a look at https://scratch.mit.edu/projects/1362570162, maybe it is the first CAS on Scratch.
There're still some silly bugs. STeX is a formula editor on Scratch 5000+ building blocks What are the advantages of it: -Symbols all use LaTeX standard syntax -Run on Scratch -Stable and error prone (nested too much can result in bog, which is due to the use of -6 character size scaling and has been modified to support up to 2 ^ 53-1 layers of nesting) -Powerful functionality with multiple letter symbols More features will be added, such as multi row, integral, matrix, etc