prevent enter from releasing grades
Made code more readable
Merge pull request #1411 from davidrd/issue-1398

Closes #1398: Pressing the Enter/Return key while a grade box is selected attempts to release marks.