I've created a simple Mbed OS project and imported it into Keil Studio.
The following simple line produces no output in the serial terminal: