track keyboard usage in a device-independent fashion