added control to input values with the keyboard