'Speaking of which' can be used to refer to something that has just been said. Other similar phrases are: by the way, incidentally, apropos, with regard to...:
I won't be home when you get in from school tonight. Speaking of which, don't forget your keys.
277👍 17👎