I'll guess that the input field is inserted with the load()
call, as that seems like the only reason it wouldn't work, and then you'll need a delegated event handler
$('#basic-modal-content').on('keypress', '#adminpass', function(event){
if(event.which === 13){
$('#genel_ayarlar_guncelle').click();
}
});