Added arrow key support for selection and visual mode