How to write character components on a keyboard?
You need 五笔输入法, but I think it would be very difficult to learn, even to native Chinese speakers.

I think the best way to do it is draw it with mouse, some input method support the feature.