some arduinos, e.g. mine (UNO) don't support the keyboard/mouse libraries. I solved the problem by sending the inputs as strings over the serial port instead and then convert them to actual keyboard inputs (using user32.dll) with a script which is listening on that port