Question: How did you/me/we learn to type?
Answer: Daily, sustained practice to build muscle memory/fluency.
Question: How do we expect students to learn handwriting?
Answer: Isolated practice of letters, words, sentences and application of those skills.
Help students build foundation digital skills. - This extends to more than just keyboarding skills in older grades. Among other pre-keyboarding skills, it also includes helping younger children becoming comfortable with using a mouse, scrolling/highlighting text, and dragging and dropping.
Integrate cross-curricular connections. - Connecting interesting subjects together while students type will keep them engaged and help them get used to typing their knowledge on various topics, instead of focusing on mechanics of typing.
Practice, practice, practice! - Just like handwriting, students need plenty of opportunities to practice and master the keyboard.