Prevent window scroll from keypress