onkeyup Property
Returns or sets a Variant that represents the value of the onkeyup attribute that is the name of the script to run when the onkeyup event fires.
expression.onkeyup
expression Required. An expression that returns one of the objects in the Applies to list.
Remarks
See also the onkeydown and onkeypress properties.
Example
The following example sets the onkeyup attribute for the BODY element in the active document.
ActiveDocument.body.onkeyup = "script()"