Words that are pronounced the same are homophones.
Words that are spelled the same are homonyms.
What do you call words that are typed the same way on a telephone keypad? (you have to watch out for them when typing text messages!)
Example: good and home are both typed as 4663 using Predictive Text.