Add spacebar keydown and keyup behaviors.