How to identify keypad is numpad or querty?

Is this a correct way to check keypad type?

public boolean isNumKeyPad(WebElement argWebElement){;
        ((AndroidDriver)getBaseDriver()).pressKey(new KeyEvent(AndroidKey.NUMPAD_1));   / if the keypad is numpad then  value get inserted in the text field
        String currentText = argWebElement.getText();
        return currentText.equalsIgnoreCase("1");

Note: in capabilites I have already added below, so the keypad is not visible by default.
setCapability(AndroidMobileCapabilityType.UNICODE_KEYBOARD, true);
setCapability(AndroidMobileCapabilityType.RESET_KEYBOARD, true);