Use ‘#’ all the elements in the html
like this <ion-input #Field1 (keyup)="gotoNextField(Field2)" </ion-input> <ion-input #Field2 (keyup)="gotoNextField(Field3)" </ion-input> <ion-input #Field3 (keyup)="gotoNextField(Field4)" </ion-input> <ion-input #Field4 (keyup)="finishFunction()" </ion-input>