My aim is to be able to control a servo motor with my keyboard in a real time fashion using the **python module** of **pigpio**. That is, when I press say the 'w' key it rotates clockwise and when I press the 's' key anticlockwise. I'm using an **RPi 2, a tower Pro Micro servo SG90** and have connected it to the **PWM enabled pin 13** (BCM denotation). My servo has **not** been modified for continuous rotation.
My requests are:

 - A python code using pigpio to achieve this (or guidelines to do the same)
 - Is it possible for me to change the speed with which the servo rotates? As far as I understand it can be done using a `for` loop. If possible please allow that in the code

To use the keyboard I've tried reading [this](https://stackoverflow.com/questions/292095/polling-the-keyboard-in-python) but am not able to decipher it. I've also tried going through the pigpio documentation and have managed to move the servo to a specific orientation.