Simple general input and number-input implementation