在 keydown中是 if Key = VK_RETURN then ShowMessage('回车'); 在 keypress中是 if Key = #13 then ShowMessage('回车');