JSFiddle - React, Tailwind, and code Playground

HTML

<textarea name="post" id="post-input" autocomplete="off"></textarea>

JavaScript

jQuery(function () {
    jQuery("#post-input").on('keyup', function(event){
        if(!(event.ctrlKey || $(this).data('skipkeyup'))) {
            console.log('keyup', event);
        } else {
            $(this).data('skipkeyup', true)
        }
    }).on('paste', function (event) {
        console.log('paste event', event);
    }).on('keydown', function(){
        $(this).data('skipkeyup', false)
    })
});