TGTextEdit disable/change return key

Hi,
you mean something similar to what is shown here?

How to detect mouse roll over or hover for TGPictureButton

I tried something similar changing the kEnterNotify with a kGKeyPress but then I don’t know how to detect the return key and use it then. Any suggestions?

Stefano