Thanks Paul,
I have found that every time i call the Keyboard.releaseAll() function I receive a line feed character.
I modified the source code to ignore it.
My serial monitor input is regularly received, but the stepper is still inactive.
It must be an issue of incompatibility among libraries.