Ionic 4 navigate between opended tabs with hardware back button

Hi guys,

how can i navigate through tabs, that have been opend, using the hardware back button?

I want to switch between tabs when i come from tab 1 to tab 2 i want to go back to tab 1 when pressing the hardware back button. When i open tab 1, then tab 2 and then tab 3 i want to get back to 2 and then to 1. Simply as that.