Have you installed the USB patch for the Win98 Se?(go find it from Microsoft web site)
Try that first. If that did not help, remove the optical mouse driver and replace it with regular mouse. I would also try removing the softwares that you installed for your keyboard if you did install it. I saw a similar problem when I was supporting one of my customers.