Deal Input Event, fix #13