Prevent arrow and space keys (for page scroll), but don't prevent other shortcuts (such as Ctrl + Shift + I) when targeting HTML5