Function isKeyboardOnScreen