Hi Mirek,
the method is in the header of the window class (that is a TopWindow) so - if I understand correctly your question - is the Key method of the window, and of course your code works
I'm wondering if it could be possible to override the Key method of a Ctrl without creating a derived class (I find very convenient to set some Ctrl's properties in the lay editor and AFAIK a new derived class would lose this feature).