You can use this code to capture a return key press
win = CreateWindow("Test Window - Default (15)",0,500,400,100,0) tbox = CreateTextArea(0,0,200,200,win) ; wait until the user closes one of the windows HotKeyEvent 28,0,$028,0,0,0,0,win; Set EventCode to $028 for enter key Repeat id = WaitEvent() Select id Case $028; Trap Enter key press here Stop Case $803 Exit End Select Forever End ; bye!