assertTrue(selenium.isTextPresent("onkeyup works"));
assertTrue(selenium.isTextPresent("keyup"));
// onkeypress
ElementInspector contentKeyPress = element("formID:content_keypressID");
contentKeyPress.keyPress(KeyEvent.VK_M);
assertTrue(selenium.isTextPresent("onkeypress works"));
assertTrue(selenium.isTextPresent("keypress"));
// onstatechange
foldingPanel("formID:statechangeID").toggle().click();