fixes #704 : fork a notebook with ctrl+enter while renaming

removed extra key compariosons
Because of the copy-paste job, you've got a duplicated local variable.  Weirdly, local variables are scoped to the function in JavaScript.  So having two variables named `result` could have undesired consequences.  It's harmless here, but still bad form.  Please fix.  (Sharing the code would do it).