Switch to using jQuery and add spacebar press event.