Attempt 3 at detecting returns correctly and fix shift+enter. KeyCode is unreliable on windows.