private void KeyHookTarget(object sender, KeyEventArgs e) { if (e.KeyCode == Settings.Default.startPauseKey) { btnRecordPause_Click(null, null); } else if (e.KeyCode == Settings.Default.stopKey) { btnStop_Click(null, null); } }