This tutorial describes 2 similar libraries but you will likely only need one of them for your application. The libraries are
These libraries are not available through the Arduino IDE library manager. You will have to download and install them yourself. Click on either of the links above to visit the GitHub pages for these libraries or click on the buttons below for a direct link to download the zip files.
Those buttons will download a file such as TinyUSB_Mouse_and_Keyboard-master.zip. You should unzip the files into a folder without the word "-master" after it. Copy the folder into your Documents/Arduino/libraries folder.
For more information on how to manually install libraries into the Arduino IDE, check out the following learning guide.
Each of the libraries has an examples folder that contains the sample code we will be using in the rest of the tutorial.