Is there a way to create an Input Mask on an Edit Box?

What I mean is, can I force a specific format like say someone was to enter a phone number, can I force the input to look like (###)###-####

Does anyone know what I mean?