The event that triggered the command. It might be undefined if a virtual event triggered the key. It's typed as AnyInputEvent because you might also receive Emulated events from the Emulator if you use it. If you don't you can safely ignore the EmulatedEvent type or type the execute function as CommandExecute<AnyInputEvent>
The event that triggered the command. It might be undefined if a virtual event triggered the key. It's typed as AnyInputEvent because you might also receive Emulated events from the Emulator if you use it. If you don't you can safely ignore the EmulatedEvent type or type the execute function as
CommandExecute<AnyInputEvent>