i met with problem that Apple keyboard has different names and get workaround to press LAST key on keyboard which is always some action like Go, Search, Next, Enter … so on
public boolean tapLastKeyboardKey_iOS() {
List<WebElement> el = driver.findElements(MobileBy.className("UIAKeyboard")).get(0).findElements(MobileBy.className("UIAButton"));
return tapElement((MobileElement) el.get(el.size() - 1));
}
where tapElement my own implementation of tap. you can use any yours.