unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, AppEvnts;<br><br>type<br> TForm1 = class(TForm)<br> ApplicationEvents1: TApplicationEvents;<br> procedure ApplicationEvents1Message(var Msg: tagMSG;<br> var Handled: Boolean);<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.dfm}<br><br>procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;<br> var Handled: Boolean);<br>begin<br>if Msg.message =wm_keydown then<br>begin<br>end;<br>if Msg.message =WM_KEYUP then<br>begin<br>end;<br>if Msg.message =WM_CHAR then<br>begin<br>end;<br>end;<br><br>end.<br>