using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Input; namespace Peanuts { public class PeanutsControl { public delegate void ClimbHandler(); public event ClimbHandler Climb; public void keyPressed(Keys k) { if (k == Keys.Space) { Climb(); } } } }