Prevent onkeydown from propagating to parents.

This also includes a test for it in the demo.