Open a Finder window showing your Desktop to refresh its icons. If that doesn’t work, force the Finder to restart.
Although this could just be bad luck with the keyboards you’ve tried, it’s worth testing whether the USB ports or logic board are faulty. First disable any firmware password, if enabled, and disconnect all non– essential peripherals apart from the better of the two keyboards, mouse or trackpad, and any network cable.