<form>
<textarea></textarea>
</form>
<script>
$(function(){
$("textarea").keydown(function(e){
if (e.which == 9){
$("textarea").selectionStart.append(" ");
e.preventDefault();
}
});
});
</script>