Examples Delphi

Use the KeyDown or KeyUp events, and test for VK_LEFT, VK_RIGHT etc.