added selection for text by mouse
added selection by keyboard