Prevent default for spacebar event.