expected numeric field. This code is executed on keypress, and the entered
value is saved for you in a variable called enteredChar. Include the try block
number or a non-alphanumeric character, or if you throw an error message.