SyntaxFix
Write A Post
Hire A Developer
Questions
I think you'll struggle with keyup event - as it first triggers keypress - and you won't be able to stop the propagation of the second one if you want to exclude the Enter Key.