private void RecordKeyDown()
        {
            for (int i = 0; i < keys.Count; i++)
            {
                KeyCode key = keys[i];
                if (!Input.GetKeyDown(key))
                {
                    continue;
                }

                InputObject InputRecord = new InputObject {
                    StartTime = Time.realtimeSinceStartup, Key = key.ToString()
                };
                pressed.Add(InputRecord);
            }
        }
        private void RecordKeyUp()
        {
            for (int i = 0; i < pressed.Count; i++)
            {
                InputObject key     = pressed[i];
                KeyCode     keyCode = (KeyCode)Enum.Parse(typeof(KeyCode), key.Key);
                if (!Input.GetKeyUp(keyCode))
                {
                    continue;
                }

                key.Duration = Time.realtimeSinceStartup - key.StartTime;

                captured.Add(key);
                pressed.RemoveAt(i);
            }
        }