implemented reset the current word if it is not true
implemented delete character by pressing it