Keyboard encoder based on an Arduino for MAME