The optical mouse uses a light-emitting diode (LED) and a photosensitive sensor to track movement. The LED shines a light beam onto the surface, and the sensor detects changes in reflected light to determine mouse movement. If the surface is uneven, shiny, or reflective, the light can be scattered in multiple directions, making it difficult for the sensor to track movement accurately. This can cause the cursor to jump around on the screen.