//When a key is released
        public void OnKeyUp(object sender, VirtualKey key)
        {
            //The current keybinding
            Keybinding currentKeybinding;

            //For each keybinding
            for (int index = 0; index < keybindings.Count; index++)
            {
                //Get the current keybinding
                currentKeybinding = keybindings[index];

                //If the type matches
                if (key.Equals(currentKeybinding.key))
                {
                    //Activate the keybinding function
                    currentKeybinding.function(KeyEventType.UP);

                    //End the loop
                    break;
                }
            }
        }