Add default UI behaviour to rename dialog.

These changes make the rename dialog accept Enter and Escape. Pressing Enter will now be equivalent to pressing the Ok button, while pressing Escape will be the same as pressing the cancel button.

It might be possible to do this with the UI designer in Visual Studio, such that the changes reside in ```RenameInstanceDialog.Designer.cs``` instead, but I do now have a Windows development environment setup.