Controlling servo motor with keyboard

Lexard:

  1. I'm talking about my laptop keyboard, I want to control it with my laptop keyboard

Then you need a program for your PC that sends a character or message to the Arduino when you press a key on the laptop keyboard. That program could be the Arduino Serial Monitor or a terminal emulator program such as PuTTY or it could be a program that you write yourself.

For receiving the message in your Arduino have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

If you want to write your own PC program this Python - Arduino demo may be of interest. However you could do the same thing with any PC programming language.

...R