Function not being called (noob question)

UKHeliBob:
What keyPrint() function would that be ?

In any case, what value does KEY_RETURN have when you call typeKey() ?

Sorry, i meant the typeKey() function.

I read that keys are of type "char".

I think I know where it goes wrong though, when I run it, it prints "chrome(", instead of just "chrome". So it sends a different scancode instead of the one related to the RETURN key.

I don't know why this is happening though, if i remove the call to that function and simply write:

Keyboard.press(KEY_RETURN);
delay(50);
Keyboard.release(KEY_RETURN);

[which is the function's body]

Then it works perfectly.