Sending Mouse Position to Arduino and Servo Tracking Help

I wanted to send the coordinates of my mouse on a new window using Serial Communication to my Arduino to control my Servo. The issue I'm currently facing is the servo doesn't move even though serial communication occurs. Is there some way to debug this?

This is my code:

loop() is empty. How do you expect code to run on the Arduino, unless you've got an OS like an ESP32, without using the loop()?