Controlling servo motor with keyboard

What keyboard is that? Most Arduinos don't have a keyboard.

And what robot? All I can see from your code is two servos sweeping back and forth. A robot with just two servos doing that isn't going to move very far.

And what location is "e" that it might want to move to?

I think you may need to provide quite a few more details before we can help.

Steve