Began refactoring of HID input handling to support mapping to emulated keyboard input.