select from array, on keypress, onchange