how to handle keyboard events in selenium webdriver