Arduino Portenta Machine Control, using USB A as HID

Hello together, i am a newbie and want to ask for help in my topic.
One part of my project is, to switch a Aten KVM Switchbox by the arduino Machine Control.
Therefore i ant to emulate some keyboard hits like "ctrl"+ "F12", than "1", than "Enter"

For this I want to use the USB A port instead of the micro USB programming port.
I am not able to activate the USB A port and configure it as a HID
I read the USB HOST examples and many different posts in the forum, without success.

With the micro USB i can setup the machine control as a HID pretty simple, for example:
USBKeyboard.h

USBKeyboard Keyboard;
using namespace machinecontrol;
Keyboard.key_code(KEY_F12,KEY_CTRL);
        delay(200); 
        Keyboard._putc('1');
        delay(200); 
        Keyboard._putc(0x0A);
        delay(200);

can somebody give me a hint for my problem, please?
Thank you very much!!
Greetings Flo

Is it just the type of port that's the problem? What about wiring a USB-A female to a Micro-USB Male?

Hello er_name_not_found,
The arduino portenta machine control has two USB Ports.
I want to use the micro USB still for programming and the second USB-A for controlling the ATEN Kvm Switch.
So my question is, how to configure and set up the USB-A Port.
Thanks for some ideas!
A nice evening...

From memory, there was another topic about this. As I don't have your board, I never followed it so can't say if it was ever solved. Try a search.