I want to move the mouse pointer with an Arduino and ultrasonic sensor
That's because the Uno can't be a mouse.  For that you need the Leonardo or something else with a similar "U" style microcontroller.

If you are adventurous, and you have a genuine Arduino, you can reprogram the USB controller chip with new firmware so it thinks it's a mouse, but programming the main MCU is then a real chore.