Prevent default on keypress

…because the up and down keys will otherwise scroll the page.