I have made a HID joystick and keyboard using the new arduino micro pro with the 32u4 chip.. There is a whole host of applications Even the basic library has button control and mouse functionality.
basic library number item 9 USB...
You will need the 32u4 chip.. Or obviously one of the newer rp2040 nano's