For General Reference:
http://en.wikipedia.org/wiki/AutoHotkeyPrograms like Autopilot key do not identify exasperate keyboards. Windows merges the two keyboards.
How many keys to you need?
I use a commercial program the is different from Auto Hot key
I use one keyboard and can have over two hundred different macros. I do that by moving up to two and three stroke hot keys.
Example: I hit control 1 and a menu of 26 items pops up. I select a macro with letter. But if I hit control 2 I get a different set.
For single stroke macros, there are a number of choices. Using control with a F key gives you about 10 items.
As you your question, No, programs like Auto Hot key lets Windows handle dual keyboards. Unless you wish to write a low-level drive that has to be written for that keyboard.
AutoHotKey is Open Source. So you could try to modify it.