Write a string from the state to the console.
InputStateKey has the message.
{ "sampleKey": "yourText" }