Prova cosi
codice:
<input type="text" name="campo" onKeyUp="if (!/^[a-z A-Z 0-9]+$/.test(this.value)) this.value=this.value.substr(0,this.value.length-1);">