还是截取message消息吧~
放一个ApplicationEvents在他的OnMessage消息里写如下代码
procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
if (msg.Message >= WM_KEYFIRST) and (msg.Message <= WM_KEYLAST) then
if msg.wParam = vk_left then
//左
else if msg.wParam = VK_RIGHT then
//右
else if msg.wParam = vk_up then
//上
else if msg.wParam = vk_down then
//下
end;