Update UI.c

Fixed the bug that caused the keyboard to go unresponsive