CALL "W$KEYBUF" USING WKBUF-ADD-TO-END                         keyCodes                 GIVING returnCode  | 
WKBUF-ADD-TO-END  | Constant  | |
keyCodes  | PIC X(n)  | Keycodes to be added. The keycode string can be composed of letters, numbers and special keycodes. Special keycodes must be used with Acucobol-GT syntax and must be placed between curly brackets.  For example, in order to send "A", "B" and enter to the runtime, the following string should be used "AB{^M}". Menu selections are encoded as {m#} where "#" is the numeric ID of the menu item. See Acucobol-GT key codes for W$KEYBUF routine for the lists the supported special keycodes.  | 
0  | Operation successful.  | 
1  | Operation failed.  |