Per caso sulla tastiera in questione c'è un pulsante tipo "Office Lock"?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum