Others will know more than me but I don't think you can use an AT Keyboard on an XT. Back in the eighties, I remember seeing keyboards that had AT/XT slider switches so you could use them on either by flipping the switch.
That would indicate the keyboard electronics for the two systems are not compatible.