Click teh buttons with teh mouse. Drag the lock slider SLOWLY. When you lock the iPad (The lock button at the top right) it will stay on the app you were on when it was unlocked. The calculator works, but it's glitchy. Press space for the dev mode, it shows all variables and current hitboxes. The iPad lags, as there are a lot of custom blocks, but the buttons will work if you press in the middle for a reasonable amount of time. The Process list is there for a reason, to see any errors you have made, as the calculator only supports numbers.
100% me, 100% pen. iPad© Apple inc. I am not affiliated in any way with Apple. Adding apps takes a while, and a lot of code, so the scripts may be a bit messy. As far as I know, this is the only pen iPad on scratch. Sorry for the homescreen and/or calculator lag, I can't fix it without the iPad bugging out.