The ENDKEY condition represents run-time occurrences that have significant meaning for an older style of programming that features tightly coupled UI and database record manipulation. Because applications should not normally mix data input with transaction blocks in the same procedures, the ENDKEY condition is not frequently used in modern applications. The ENDKEY condition occurs when:
An application user presses a key that is mapped to the ENDKEY keycode when input is enabled. In character mode applications, input is always enabled.
The application reaches the end of an input stream.
Related to the ENDKEY condition is another keycode called END-ERROR. END-ERROR detects more special cases related to the older style of programming and provides default processing.
If you have interest in ENDKEY and END-ERROR processing, refer to the ON ENDKEY and ON END-ERROR phrase entries in OpenEdge Development: ABL Reference.