keyboard-state
There are 2 repositories under keyboard-state topic.
boppreh/keyboard
Hook and simulate global keyboard events on Windows and Linux.
Animeshz/keyboard-mouse-kt
A lightweight multiplatform library for interacting with global keyboard and mouse events and states from Kotlin, Java and NodeJS.