I don't have a X-key myself, but I am pretty sure you can program the keys to "work" etc like "W" key. I have a Nostromo myself and don't need more keys than that myself and I can do that.

If not I just read Mapping a movement direction 3 times..., maybe you can get some inspiration from there - not sure if you can use it.