/// <summary>
 /// This method turns off the REPLAY_SEQUENCE_ACTIVE flag and stops the keylogger.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void REPLAY_SEQUENCE_STOP(object sender, EventArgs e) //Logged and documented.
 {
     EVENTS.LOG_MESSAGE(1, "ENTER");
     KEY_LOGGER.STOP_KEY_LOGGER(); //Stop the logger in the FORBES library.
     REPLAY_SEQUENCE_ACTIVE = false;
     EVENTS.LOG_MESSAGE(1, "EXIT_SUCCESS");
 }
        /// <summary>
        /// This method will stop the key logger record session.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RECORD_SEQUENCE_STOP(object sender, EventArgs e) //Logged and documented.

        {
            EVENTS.LOG_MESSAGE(1, "ENTER");
            BTN_RECORD_START.Enabled = true;
            BTN_RECORD_STOP.Enabled  = false;
            RECORD_SEQUENCE_ACTIVE   = false;
            KEY_LOGGER.STOP_KEY_LOGGER(); //Stop the keylogger in the FORBES library.
            EVENTS.LOG_MESSAGE(1, "EXIT_SUCCESS");
        }
 /// <summary>
 /// This method will start the key logger. Keys will be recorded when the KEY_PRESSED event is raised.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RECORD_SEQUENCE_START(object sender, EventArgs e) //Logged and documented.
 {
     EVENTS.LOG_MESSAGE(1, "ENTER");
     KEY_LOGGER.START_KEY_LOGGER(); //Start the keylogger in the FORBES library.
     EVENTS.LOG_MESSAGE(3, "Key logger started.");
     BTN_RECORD_START.Enabled = false;
     BTN_RECORD_STOP.Enabled  = true;
     SEQUENCE_LIST.Clear();
     SEQUENCE_DATATABLE.Clear();
     EVENTS.LOG_MESSAGE(3, "Cleared sequence tables.");
     RECORD_SEQUENCE_ACTIVE = true;
     EVENTS.LOG_MESSAGE(1, "EXIT_SUCCESS");
 }
 private void KEY_LOGGER_CLEAR(object sender, EventArgs e) //Not currently used.
 {
     KEY_LOGGER.CLEAR_KEY_LOGGER();
 }
 private void KEY_LOGGER_STOP(object sender, EventArgs e) //Not currently used.
 {
     KEY_LOGGER.STOP_KEY_LOGGER();
 }
 private void KEY_LOGGER_START(object sender, EventArgs e) //Starts the keylogger.
 {
     KEY_LOGGER.START_KEY_LOGGER();
 }