Add functionality that dismisses keyboard upon entering return key, using delegation