maybe there's an interrupt to simulate keystrokes that you could tie into.