The Muncie Star-Press has this story about the 15 certified write-in presidential candidates this year in Indiana.
The story reveals that in Indiana, voters who wish to cast a write-in vote use a keyboard, which is attached to the voting machines. This solves the problem of illegible handwriting.