If you have the "Show all file extensions" option enabled in Finder Prefereces, then when you press enter to rename the selected file in a window, the filename is highlighted but not the extension. This makes it easier to rename the file without changing the extension.
To rename the file and extension, press command-a before you type the new filename.
How Windows-y.