making cells commit when enter is pressed