I've done a commute of a similar length, though much more distance. Being sat in a car, moving slower than you could walk, that does sound stressful.
Going off a quick search, looks like there's a train every twenty minutes or so from Kildare to Dublin. That would be my preference.