AAC keys resets arduino?

Hi!

I'm trying to set up my Arduino UNO as a keyboard emulator. It works, but when aac keys has made a keystroke, it resets the arduino connection. This way, after a key is pressed the arduino resets and i can't finish the program.

In case the code is important here, this is my code:

const int beugel1 = 2;
const int beugel2 = 3;
const int poort1 = 4;
const int poort2 = 5;
const int verzend = 6;


int beugel1status = 0;
int beugel2status = 0;
int poort1status = 0;
int poort2status = 0;
int verzendstatus = 0;
int ledverzend = 12;
int ledbeugel = 11;
int ledpoort = 10;


void setup() {

pinMode(beugel1, INPUT);
pinMode(beugel2, INPUT);
pinMode(poort1, INPUT);
pinMode(poort2, INPUT);
pinMode(verzend, INPUT);
pinMode(ledverzend, OUTPUT);
pinMode(ledbeugel, OUTPUT);
pinMode(ledpoort, OUTPUT);
Serial.begin(9600); // open the serial port at 9600 bps:
}

void loop(){

beugel1status = digitalRead(beugel1);
beugel2status = digitalRead(beugel2);
poort1status = digitalRead(poort1);
poort2status = digitalRead(poort2);
verzendstatus = digitalRead(verzend);


if (beugel1status == HIGH) {
Serial.print("\061");
}
if (beugel2status == HIGH) {
Serial.print("\062");
}
if (poort1status == HIGH) {
    digitalWrite(ledpoort, HIGH);
Serial.print("\063");
}
if (poort2status == HIGH) {
Serial.print("\064");
}
if (verzendstatus == HIGH) {
Serial.print("\015");
digitalWrite(ledverzend, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(500);               // wait for a second
digitalWrite(ledverzend, LOW);    // turn the LED off by making the voltage LOW
delay(500);
digitalWrite(ledverzend, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(500);               // wait for a second
digitalWrite(ledverzend, LOW);    // turn the LED off by making the voltage LOW
delay(500);
digitalWrite(ledverzend, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(500);               // wait for a second
digitalWrite(ledverzend, LOW);    // turn the LED off by making the voltage LOW
delay(50);
}
}

It's not the cleanest code, but hey :P.

After Serial.print the arduino resets with AAC keys, so for example in the last if statement, the led won't blink. When i disable AAC keys it skips the serial print and the led does blink. When i try other software than AAC keys, it also works. No resetting here, but the program (Nolimits 2) doesn't receive the keystroke. Only word receives it then.

So my actual question is: Why does AAC keys reset the connection each time a button is pressed and how can i turn that off?

Thanks in advance!

Hidde

Clarification, aac keys is a program running on your computer that watches the serial connection and translates incoming data into mouse and keyboard input? That's what I gathered from their -site-. There are ways to prevent the arduino from reseting as detailed here. Is that what your looking to do? Correct me if I'm wrong but I believe the arduino uno resets on serial connection so it may have to do with how the program, aac keys, handles the serial connection.