fix bug that key event should be stopped