onKeyDown is utterly useless for a textfield without changing this in Textfield.xs:
Line 746 case should change to: case WM_KEYDOWN: PerlResult = DoEvent_NEM(NOTXSCALL perlud, PERLWIN32GUI_NEM_KEYDOWN, "KeyDown", PERLWIN32GUI_ARGTYPE_LONG, lParam, PERLWIN32GUI_ARGTYPE_LONG, wParam, -1); break; This way, we get the key-code (wParam) and a load of other info in lParam documented here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_keydown.asp as arguments to the handler. Steve