automatic send a character just pushing a key on my keyboard

Hy guys, Is there a way to send a characters without pushing every time a key? The reason is that I wold like to controll a motor with the key 'H' (for example) and I would like to see it working till the 'H' key is pressed and when I stop pushing it the motor stop working. Thank you

If you mean that the motor should work WHILE the H key is pressed then you need a PC program (perhaps written in Python) which detects when the key goes down and sends a start character to the Arduino and later detects when the key is released and sends a stop character.

This Python demo may be a useful starting point.

...R

yes it is what I meant.
Thank you so much