EscapeKey Method Example

This example turns on and then cancels extend mode.

With Selection
    .ExtendMode = True
    .EscapeKey
End With

Send feedback to MSDN.Look here for MSDN Online resources.