Sorry to dredge up this old post, but I am having problems getting keystrokes to MAME. I have tried SendKeys, SendInput, and keybd_event. Each of those works perfectly in windows apps like Notepad, but MAME does not respond at all. Any ideas? I must be missing something obvious. Any hints on getting MAME to programmatically accept a keystroke would be appreciated.