private void Form1_Load(object sender, EventArgs e) { inputDevice = new InputDevice(Handle); inputDevice.EnumerateDevices(); handler = new InputDevice.DeviceEventHandler(inputDevice_KeyPressed); IntervalTimer = new Timer(); }