Yes, I've done something similar, it required opening the keyboard and flipping the keyboard cable connection (reversing it) where it connects to the board, and then you'd need an AT to PS/2 adapter on the keyboard plug.
That, or you could mess with the wires in the adapter (if it has a length of cable with it as some do.) Cleaner to open the keyboard though.