Implementing HOME and END logic to editbox