Reading the keys on the keyboard

I have been brushing up o Processing after buying a Microsoft Surface Book 2. When I get to trying to draw letters on the keyboard, it seems the key code is not passed into the program. Anyone have a similar problem? It may be unique to the Surface Book 2.

BTW: I was working with the Java mode.

Now I am embarrassed, I left out a needed line code — so please ignore this issue.