Well, as I said, using DirectInput is fine. I thought you were trying to use DirectX graphics, which won't work with XNA.
The "right" way is to add a reference to the Microsoft.DirectX.DirectInput assembly as you showed in your previous post. Just select Microsoft.DirectX.DirectInput. Then add "using Microsoft.DirectX.DirectInput;" to whatever source files will be making use of the namespace.