DUE: No response on functions of keyboard library

I just tried a few examples from the tutorials with my new DUE.
The examples KeyboardLogout and KeyboardMessage don't work.
I checked with a few debug lines to serialmonitor if the code would work: it does, no errors pop-up and it executes the keyboard functions (at least: passes the code lines).

Searching the topics, I found a few issues. Eg. one was saying that should use the native USB port. However, just changing connector and uploading code doesn't work.

Something else that I can check?

I work with Windows 10 and a DUE.

Oops, post above too fast ... just solved it.
Indeed I had to use the Native USB port

But I had to change settings first, namely to Board: "Arduino Due (Native USB Port)".

Somehow the COM port changes a few times, don't know why.
In the end there is one marked "COMx (Native USB Port)".
Selecting that one worked!