user34698: I'm a bit of a noob in the Arduino area but I found an Arduino nano I bought a long time ago sitting on my shelf and collecting dust, 
so I taught "why not make a project". I game a lot of racing games so I wanted to make a simple ignition button with it, but every time I tried to compile or verify it, it says 

Keyboard not found. Does your sketch include the line #include "Keyboard.h"


user72893: The solution to get a board that has built in USB support is not preferred for someone who just wants to use the boards they already have.  It is possible to use a board that can communicate with your computer over serial, such as the Arduino Nano, to send data to a Python program which can then turn the input from the Arduino into keyboard presses, etc. using libraries.
For this approach, you would need to know python.
The libraries to use are:
pyserial - communication with Arduino
pynput - control the computer's keyboard
threading (comes with python) - allow pyserial and pynput to work simultaneously

user30198: Get yourself a Arduino Leonardo, Micro or Pro Micro (or Due, Zero, M0). Those can emulate a keyboard.
Start with reading the Arduino Keyboard Mouse reference.
The Arduino Nano can not use the Arduino Keyboard Mouse library.
Since many years, there is a library called "V-USB" that requires some extra hardware and makes it possible for a ATmega328p microcontroller to act as an USB device. It is not something for a beginner.
A few years ago, Arduino has changed the way the USB is used. The NicoHood HID library makes use of the new possibilities. It makes it possible for example to have extended features for a USB keyboard, like the media keys.
For a normal keyboard and mouse, the Arduino Keyboard Mouse library will do. It will be perfect for a ignition button. But you have to buy one of those boards (Leonardo, and so on).

34698: <p>I'm a bit of a noob in the Arduino area but I found an Arduino nano I bought a long time ago sitting on my shelf and collecting dust, 
so I taught "why not make a project". I game a lot of racing games so I wanted to make a simple ignition button with it, but every time I tried to compile or verify it, it says </p>

<blockquote>
  <p><em>Keyboard not found. Does your sketch include the line #include "Keyboard.h</em>"</p>
</blockquote>
 72893: <p>The solution to get a board that has built in USB support is not preferred for someone who just wants to use the boards they already have.  It is possible to use a board that can communicate with your computer over serial, such as the Arduino Nano, to send data to a Python program which can then turn the input from the Arduino into keyboard presses, etc. using libraries.</p>
<p>For this approach, you would need to know python.
The libraries to use are:</p>
<p>pyserial - communication with Arduino</p>
<p>pynput - control the computer's keyboard</p>
<p>threading (comes with python) - allow pyserial and pynput to work simultaneously</p>
 30198: <p>Get yourself a Arduino Leonardo, Micro or Pro Micro (or Due, Zero, M0). Those can emulate a keyboard.<br>
Start with reading the <a href="https://www.arduino.cc/en/Reference/MouseKeyboard" rel="noreferrer">Arduino Keyboard Mouse reference</a>.</p>

<p>The Arduino Nano can not use the Arduino Keyboard Mouse library.</p>

<p>Since many years, there is a library called "<a href="https://www.obdev.at/products/vusb/index.html" rel="noreferrer">V-USB</a>" that requires some extra hardware and makes it possible for a ATmega328p microcontroller to act as an USB device. It is not something for a beginner.</p>

<p>A few years ago, Arduino has changed the way the USB is used. The <a href="https://github.com/NicoHood/HID" rel="noreferrer">NicoHood HID library</a> makes use of the new possibilities. It makes it possible for example to have extended features for a USB keyboard, like the media keys.</p>

<p>For a normal keyboard and mouse, the Arduino Keyboard Mouse library will do. It will be perfect for a ignition button. But you have to buy one of those boards (Leonardo, and so on).</p>
