device_query (cargo): A basic library for querying keyboard and mouse state on-demand without a window.
Keywords: keyboard|input|mouse