Prevent keys from being entered on keydown.