Transition from block to text coding

When my elementary students go into middle school, I am looking for a lesson that will teach what the typing means and how to use it. I like the projects, but how do students learn how to get there?