Prevent onkeydown from propagating to parents.

This also includes a test for it in the demo.
Merged the event functionality method into one.
Added a method to return the input element.
Merge pull request #5 from UseAllFive/keyupfix

Prevent onkeydown from propagating to parents.