Basically it uses 5 keys for 5 basic stroke types and inputs characters by their stroke order. See https://en.wikipedia.org/wiki/Stroke_count_method