How can I send two keyboard inputs at the same time?



I don’t know how to send ‘keyDown’ while sending ‘keyDown’.
I want to let it press some key while pressing Shift key.
Please tell me.

Because I’m a Japanese, I can’t write English well. Sorry.


I have a shortcut in my app, if user clicks ctrl+F it will open search box

$(document).on("keydown", function (e) {
    if ((e.ctrlKey) && e.which === 70) {
        //70 is keycode for F
        console.log("user pressed ctrl+F buttons") ;


Are you asking this or you want to simulate the button click automatically