The virtual key code for the keyboard key associated with a key event.
- macOS 10.0+
NSInternal if sent to a non-key event.
The property’s value is hardware-independent. The value returned is the same as the value returned in the
k when using Carbon Events.