First implementation of selection by typing.