Problem I’m wondering how to “beautify”/”simplify” this code: function handleKeyDown (e) { if (e.key === ‘Enter’) { e.preventDefault() myCustomEvent(e) return […]