fixed keyevent listener.