I dabble with my piano sometimes—at a beginner level, as you will see.
I just improvised this sound today, and now I was thinking what key it might be in. I wanted to say G minor, but that uses B-flat, and I'm using a B-natural in there. Is this not really in a proper key?
While on the surface this question is about me wanting to know the key, it really is about how to recognize a key, possibly recognizing modulation, and also about whether being in a key is a canon to be respected.
Also, please suggest bluntly anything you'd like on improving this from a music-theoretic standpoint. We're all here to learn.