Jalankan Kode JS Setelah Menekan Space Bar

document.body.onkeyup = function(e){
    if(e.keyCode == 32){
        //your code
    }
}
Blue-eyed Boar