code: public void setOnKeyPress(String onkeypress)
      {
          AbstractHtmlState tsh = getState();
          tsh.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONKEYPRESS, onkeypress);
      }
docs: Sets the onKeyPress javascript event.
  @param onkeypress the onKeyPress event.
  @jsptagref.attributedescription The onKeyPress JavaScript event.
  @jsptagref.databindable false
  @jsptagref.attributesyntaxvalue <i>string_onKeyPress</i>
  @netui:attribute required="false" rtexprvalue="true"
  description="The onKeyPress JavaScript event."