code: public void setOnkeypress(java.lang.String onkeypress) {
          getStateHelper().put(PropertyKeys.onkeypress, onkeypress);
          handleAttribute("onkeypress", onkeypress);
      }
docs: <p>Set the value of the <code>onkeypress</code> property.</p>