Prevent user to add multiple break lines in input form

@eslamtharwah
All you need to do is,

if (pressed —> ENTER ) {do nothing}

const pressedKey =  (event.key).toString()

if (pressedKey==="Enter") {console.log("Nothing happens here. The ENTER-button is without functionality")}
else {
    // do something
}