JSFiddle - React, Tailwind, and code Playground
HTML
<textarea cols="10" rows="10">
</textarea>
JavaScript
function first(event) {
event.stopPropagation();
console.log('first function');
}
function second(event) {
console.log('second function');
}
function third(event) {
console.log('third function');
}
$('body').on('keypress', 'textarea', first);
$('body').on('keypress', 'textarea', second);
$('body').on('keypress', 'textarea', third);