It will depend on the connections on the back of the PC for mouse / keyboard. Generally speaking, there should be a couple of PS2 connectors - about the size of a 5p coin.
I don't know if Gateway had their own type - it is possible.
What happens when the mouse is detached from the keyboard (can it?)? You may be able to replace it with a USB mouse?