Update UI.c

Made changes to determine if char entered is a digit or not