Clicking on keyboard instead of button while doing .click

While clicking on OK or Cancel button with Keyboard, it is clicking on Key 7 instead of button, If clicking without keyboard (After hiding the keyboard) its clicking on the expected button in Android Lollipop. (Was working Kitkat without any issue).

Appium Version: 1.3.4.1 in Windows
Android version: Nexus 5 (5.0.1)

Could you provide the code?