How to handle 'done' button on an Android keyboard app with AngularJS/Ionic?

I'm creating an hybrid mobile app using AngularJS, Cordova, and Ionic framework.

Here is an Android 5.0 keyboard. Take a look at the blue button in the bottom-right corner.

I'd like to do 2 things:

  1. Control which "type" of button displays (sometimes it's a "next" button, a "done" button, or a "search" button. The icon changes.)
  2. Control the behaviour of this button. For example, I'm signin up and typing my name in a first fied. In my case, the default behaviour of the keyboard button is to submit the form instead of going to the next field. I'd like to control this button to go to the next field.

All topics I found talked about native Android app with Java code. Thanks!