Use selectionchange to capture selection events (instead of keyup and mouseup)