To retrieve a key from Keyboard, you can use one of these methods: While the Input System supports having many Keyboard devices at any point, platform backends generally only report a single keyboard and route input from all attached keyboards to the one keyboard device.
At the moment, the new Input System doesn't support on-screen keyboards.For example, a given keyboard might report a simultaneous press of the "QWERT" keys correctly, but might not report "QWERA" correctly. This means that certain simultaneous keypresses may not register correctly. Keyboards usually have hardware limitations on both the number of simultaneous keypresses they report, and the combinations of keys they support.For example, you can query the key that produces the producing the a character from Keyboard using Keyboard.current. You can look up keys based on the character they produce using Control paths. The value of this property changes automatically when the OS changes the keyboard layout. To query which (if any) character is generated by a given key, use the key Control's displayName property. This means that, for example, the A key is always the key to the right of the Caps Lock key, regardless of where the currently active keyboard layout places the key that generates an a character, or whether or not the layout doesn't have a key assigned to that character. The location of individual keys is agnostic to keyboard layout.
The Keyboard class defines a Device with a set of key Controls defined by the Key enumeration.