stopPropagation and preventDefault when space key pressed.