Check keybord keys and sticky keys in control panel.
And did you try vba-m its a continuation of vba but im recomend more MGBA.
Writing emulator is very complex you need all technical stuff know C++ or other language and algorithms.
So far mednafen emulates PC Engine and is available in retro arch.
His fork is called beetle.
Cores are called :