prevent enter from releasing grades
Made code more readable
Initial Fix for issue-1414
Fix a typo redcing -> reducing