I have a piano keyboard and started experimenting with it like I saw you suggest here in the questions a few times to others. I barely know any music theory but the stuff I improvised actually sounded pretty good. However that was just more or less randomly pressing chords and making a melody w/o knowing where it is going or what it would sound like.
it must not have been completely random, because you already said it was good