Perhaps you are interested in reading
Request - Escape key script; especially
matty's reply to Request - Escape key script seems interesting. Attached to his post is a script that changes the functionality of the Escape key in a conversation window so the key does no longer close the window, but simply removes the already typed text.