DataGrid: improve handling of left/right arrow keys when editing text