How to have instant type:answer feedback?

Hi! I have been practicing with this script and have an interesting problem. When my answer field has a quotation mark in it, the javascript is bypassed. When I am typing in the answer, there is no color change. So, it behaves as if the script is not working. As soon as I take the quote marks out of the answer field and try again - it works perfectly. Is there anything that I can add to the script so that it will run even if there are quotation marks in the answer? Thanks!