Add below lines to your EditText, the Go button will appear on your keyboard
<EditText android:singleLine="true" android:imeOptions="actionGo"/>
Use the code below to listen to the GO button
editText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if(actionId== EditorInfo.IME_ACTION_GO){
Hope this works for you.
source share