I am using JQuery ui with datepicker and when a user tabs on to a field, they appropriately get the calendar pop up.
You can probably use the onClose event to return focus to your input when the datepicker closes, as this refers to the associated input field in that callback. For example:
onClose
this
$('.date').datepicker({ onClose: function() { this.focus(); } });