public static void Update(List <Keys> pressedKeys) { Up.Append((uint)(pressedKeys.Contains(Keys.Up) ? 1 : 0)); Down.Append((uint)(pressedKeys.Contains(Keys.Down) ? 1 : 0)); Left.Append((uint)(pressedKeys.Contains(Keys.Left) ? 1 : 0)); Right.Append((uint)(pressedKeys.Contains(Keys.Right) ? 1 : 0)); Button1.Append((uint)(pressedKeys.Contains(Keys.Enter) ? 1 : 0)); Button2.Append((uint)(pressedKeys.Contains(Keys.Space) ? 1 : 0)); Sp1.Append((uint)(pressedKeys.Contains(Keys.Z) ? 1 : 0)); Sp2.Append((uint)(pressedKeys.Contains(Keys.X) ? 1 : 0)); }