I am currently using a Arduino Nano 33 BLE Sense board for my project. I want to press ALT + F4 keys when a signal is triggered. Since this is an mbed_os board, I am using the USBKeyboard.h library. But the issue is, I am able to press only one key at a time. I am not able to press ALT+F4 simultaneously
First, can you please confirm where you got the library from (e.g., provide a link to Github) and post a complete sketch. This will allow others to test this without writing a sketch first and search for the library. Often libraries have the same name for a header file but are different.
I believe you are looking for keyboard decoder library with "two-key rollover" which will reliably detect only any two keys used simultaneously ; in other words, you can can hold down your ALT on the keyboard and press a + key and be sure that the keypress is correctly detected by the computer. Check if it will support N-Key_Rollover.