GUI Elements' message handlling

Hello, everyone!
I wanna to handle the GUI Controls’ messages .for example, textField’s KeyDown message. How can i realize it?
Thanks a lot!

You can freely access those via Event.current within your OnGUI function. The events are not specifically delivered to the elements, they merely look at the events when you call the element functions in your OnGUI.