public void Confirm() { KeyCode[] new_keys = GetPressedKeys(); associated.act_code = new_keys; associated.keyids = System.Array.ConvertAll(new_keys, c => (ushort)c); parent.Changed(associated, associated.function); Globals.audio.UIPlay(UISound.soft_crackle); }