Fixed shutdown/crash when pressing the enter key.