fixed keypress event errors on webtool