Component for selecting numbers by typing or clicking