实际上可以通过KEYPRESS事件触发。
通过判断参数keyascii
if keyascii=vbkeyescape then
   '将内容显示在文本框代码
end if
或者利用系统钩子将键盘事件勾入指定消息处理代码。