On Android, you can interact with the keyboard through:
import the following at the top of your test:
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
import io.appium.java_client.android.AndroidDriver
import io.appium.java_client.android.AndroidKeyCode
And then use this code to access the keys:
AndroidDriver<?> driver = MobileDriverFactory.getDriver()
driver.pressKeyCode(AndroidKeyCode.ENTER)
Where AndroidKeyCode is an enum with all of the possible key entries, e.g. KEYCODE_0
, KEYCODE_A
, etc.