[Linked Image from i.imgur.com]

The P30 keyboard controller program isn't quite compatible with the 8278. If I ignore the keyboard clock it misbehaves in the same way as the 8278 so I added a hack which works even though I don't think it's correct.