Map HID events to key events