Commenting and name fixes.

Fixed an issue where the key presses were not being detected when the user quits renaming by pressing the ESC key or clicked on the item being renamed.