Moved input handling out from nes_emulator and into a separate input_processor module.