This is the code I was trying to use:
const int buttonPin = 2; // the number of the pushbutton pin
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
pinMode(buttonPin, INPUT);
Serial.begin(9600); // open the serial port at 9600 bps:
}
void loop(){
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
Serial.println("e");
}
else {
// nothing
}
}
AAC Keys is a free program I found here :
http://www.aacinstitute.org/Resources/ProductsandServices/AACKeys/AACKeys.html