seleniumbycharan.com
KeyBoard Functions Using Robots Class In Selenium Webdriver
By using this we can test the keyboard events of an application.This post helps you to do it. Note :We can also use Actions class and also Javascript.