fixed arrow key bug while writing comments