How to handle keypress in plugin TextBox?

Afaik it’s impossible, but maybe there are any workarounds? I want to handle keypress and get exact key pressed on my TextBox in DockGui.