Hola, drn r.
Veamos si esto te ayuda:
Código PHP:
<html>
<head>
<script>
function pulsar(e) {
if (navigator.appName == "Netscape") tecla = e.which
else tecla = e.keyCode
if (tecla == 13) {
document.getElementById("tex").value+='<br>';
}
}
</script>
</head>
<body>
<textarea id="tex" onkeyPress="pulsar(event)" ></textarea>
</body>
</html>
Saludos,