se per premere un bottone intendi mentre scrivi:

$(document).ready(function() {

$('#idinputtext').keyup(function(){
$('#idDiv').html( $(this).val() );
});


});