I dont know if its what you want, but I will try. You can add a mouse object (or touch if it's on mobile). After that, in your event sheet it's supposed to be similar to this:
On left button clicked on MoveObject (or on object clicked on touch, if it's mobile)
>Move forward of 50 pixels
This is only an example. You can change the object and the move for rotate, for example
For a text box, me I put a global variable (if it's for a'll of your layouts) or a variable on your textbox (if it's only for this layout) And you put that in your event sheet. Note that the variable needs to be a text, not a number or a boolean
Every tick : Set variable to textbox.text
For displaying it, there can be another event Every tick but with the action Set text to variable.vale