you can try a digispark with attiny85 onboard which can emulate a hid keyboard, but you must investigate if it can send control keys such windows, alt or combination of keys. You can program it with arduino.

0_1621350557303_digispark.jpeg