Setting a second keyboard for macros in software

I want to set up a second keyboard just to run macros. The best info I’ve been able to find is the “X keyboard extension” article on the Arch Wiki. Is there a simpler way to set up the second keyboard to be independent custom keys?