Mechanical Keyboard Layout Not Recognized
Perhaps Ukelele is what you're looking for? It's a nice front-end to make custom keyboard layouts for Mac.

Also the solution listed here at SO might be helpful if it's more of a problem with the non-letter keys.