creating an event for an intraweb component

is there a way to create an event for an intraweb component? for
example in delphi 7, a TIWEdit box only has OnHTMLTag and OnSubmit
events. i'd like to add an OnKeyPress using code, but have been
unsuccessful, during my searching, to finding help. sample code would
be greatly appreciated: i.e. what should go in the following areas:
(areas with ????) and how do i tie it to a particular tiwedit box
etc..

unit untTest;
{PUBDIST}

interface

uses
  IWAppForm, IWApplication, IWTypes, IWCompListbox, IWDBStdCtrls,
Classes,
  Controls, IWControl, IWGrids, IWDBGrids, IWCompButton, IWCompEdit,
SysUtils,
  IWExtCtrls, StdCtrls;

type
  TformMain = class(TIWAppForm)    
    IWDBGrid1: TIWDBGrid;
    edtTest: TIWEdit;
    btnTest: TIWButton;
    IWDBLookupComboBox1: TIWDBLookupComboBox;
    edtEdt2: TIWEdit;
    procedure IWAppFormCreate(Sender: TObject);
    procedure btnTestClick(Sender: TObject);
  public
    ????

  private
    ????

  protected
    ????

  end;

implementation
{$R *.dfm}

uses
  ServerController, DatamoduleUnit;

procedure TformMain.IWAppFormCreate(Sender: TObject);
begin
  .
  .
  .
end;

end.