Stop key event propagation.

Some keys perform undesired actions (for example, space bar scrolls the page
down) and we don't want it to happen.