fixed the arrow issue - but still need to resolve text input while highlighted as noted in the issue
new char input overwrites highlighted text - messy but working. Needs revision.