Fixed up/down keys repositioning text cursor too