- Added a generic input interface.
- Implemented generic key handling and mapping for keyboards.
- Propagated changes to the rest of the code.