I have had this problem with my iPhone XS for so long that I thought that it must be a ´feature not a bug. It is particularly bad when trying to swap keyboards when changing languages. You can tap the keyboard icon til the cows come home and nothing happens. Fix it please.