The goal is that when writing something in the input, it is also written in the paragraph using onkeyUp. However it does not work
window.addEventListener('load', iniciar, false);
function iniciar() {
var titulo = document.getElementById('texto').value;
titulo.addEventListener('onKeyUp', nuevotitulo, false);
}
function nuevotitulo(e) {
document.getElementById('textonuevo').innerHTML = titulo;
}
<body>
<input type="text" id="texto">
<br>
<p id="textonuevo">
</p>
</body>