Can I detect user keyboard events within figma (not only the UI of the plugin)

I want to know whether the user is pressing for example “command” currently or not. Can I know this within the Figma file?

Not sure how else I would make my plugin as seamless as the rest of Figma.

Thanks in advance for any help!

Hi @mathias6,
This is not possible in the Plugin API today, but our team would be interested if you could share more details on the scenario you’re trying to unlock by knowing what keys the user is pressing. If you can, feel free to reach out to our support team here:
Thank you!