bug fix with \n, done and enter buttons with keyboard