Reordered attributes to be more consistent.
Remove focus from cell when pressing enter or clicking outside of selected cell.