Attach an action to an event to an object
<p>I am writing a little game library, And I am not sure how I should do this.</p>

<p>I will have multiple event classes: Keyboard, Mouse, MouseMove, etc. and multiple Action classes: Move, Create, Delete, etc.</p>

<p>What I would like to happen, is when using the library, you can attach an action such as a <code>Move</code> action to a key press event, then attach that event to an object, such as a game character. Then when you run the game and press the left arrow key the character moves left.</p>

<p>So, what would be a good way to do this task:</p>

<ol>
<li>Create an Action</li>
<li>Attach the action to an event</li>
<li>Attach the event to an object</li>
</ol>
