我用下面语句,却出错
procedure Tclmxlr.DBEdit2KeyPress(Sender: TObject; var Key: Char);
begin
 if key=#13 then key:=TAB;
end;
请问我应该怎么改?