Invalid element state when send keys

I use appium to inspect the elements, but now cannot send keys --The on-screen keyboard must be present to send keys
The issue is similar to these issues as below:
element is not invalid
invalid element state