You can use keyboard in this script
-- pair this with e.g. "When this is tapped, send script message "askForText"
function onMessage(message, triggeringActor)
if message == "askForText" then
castle.getTextInput(function(text, canceled)
if canceled then
print("canceled")
else
local label = castle.actorsWithTag("label")[1]
label.text.content = text
end
end)
end
end