I don't know if you can. Gboard is Google Keyboard. It may need Google Services and may not work on Graphene.
Google essentially abandoned AOSP keyboard and put all of the cool stuff into Gboard. Google has done this with many, many core AOSP apps. Calendar, Messenger, Contscts, etc.