title: How can I put this SAPUI5 property in JSON writing (listener property)
body: <p>I have this variable (oKunde2) and I want to put the attachBrowserEvent as a listener into the sap.ui.commons.Textfield(). But whatever I try it doesnt work.</p>
  
  <pre><code>var oKunde2 = new sap.ui.commons.TextField({ width: "50%", 
                                               id: "kunde", 
                                               enabled: true});
      oKunde2.attachBrowserEvent("keyup", function (event) {
              var key = event.keyCode || event.which;
  
              if (key === 13) {
                  pressHandler();
              }
              return false;
          });
  </code></pre>
  
  <p>This is my code vor this specific variable and I hop you can help.</p>