void Update() { // if any key is pressed if (Input.anyKeyDown) { // send it to the listener myTransmitter.SendMessage("/keypress", Input.inputString); } }