I ask myself where I expected it to be, then update the keyboard accordingly. Eventually it doesn’t happen anymore.