Communicating between two classes

Hey,
I have a custom keyboard class. The second class is having a textBox as its child and my custom keyboard’s object as child. When the key in the custom keyboard is clicked, how can i update the value in the text box?