| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== PRESSKEY (put a keystroke in the buffer) ====== | [[press put characters in the buffer .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[previous read previous view record in sequence .htm|{{btn_next_n.gif|Next page}}]] | | || **PRESSKEY(**//keycode//**)** {{blk2blue.jpg|blk2blue.jpg}} | **PRESSKEY** | Places one keystroke in the keyboard input buffer. | | //keycode// | An integer constant or keycode EQUATE label. | **PRESSKEY** places one keystroke in the Windows keyboard input buffer. Once placed in the keyboard buffer, the //keycode// is processed just as if the user had pressed the key. ALIAS does not transform a PRESSKEY //keycode//. **Example:** **IF Action = 'Add'      !On the way into a memo control on an add record** ** Cus:MemoControl = FORMAT(TODAY(),@D1) & ' ' & FORMAT(CLOCK(),@T4)** **                       !Pre-load first line of memo with date and time** ** PRESSKEY(EnterKey)    !and position user on second line** **END** **See Also:** [[press put characters in the buffer .htm|PRESS]]