How to press on the right arrow button in android keyboard

I have used different method to click on the blue right arrow key in the keyboard like

Runtime.getRuntime().exec(“adb shell input keyevent 66”);

driver.pressKey(new KeyEvent(AndroidKey.ENTER));

Also used below keycodes
AndroidKey.SEARCH
AndroidKey.NAVIGATE_NEXT
AndroidKey.CTRL_RIGHT
AndroidKey.TAB

But nothing was pressing that key, how to perform pressing on the blue right arrow key

I have attached the screenshot for reference.

Try read logcat logs while you press it manually. I bet it should help undertand how press it with code…

Try GitHub - appium/appium-uiautomator2-driver: Appium driver for Android UIAutomator2