How to click on search on android keyboard

Hello to all!
I need your help, I have 2 problems.

  1. I am trying to write 5 characters from a troke, but only the first character is written.
  2. how do I click on the search button on the keyboard (added a screen)?

I tried to try “driver.pressKeyCode(84);” but does not recognize the string