I'm having the same problem with the ALT GR key.
I also have the problem when using the arrow-keys.
When I press the UP-arrow, then the above program prints 42 and 200.
Also for the other three arrows, the value 42 is always there.
I also have the problem when using the arrow-keys.
When I press the UP-arrow, then the above program prints 42 and 200.
Also for the other three arrows, the value 42 is always there.