On Samsung devices, there are these two options: (screenshot link)
- Keyboard button navigation bar
- Show button to hide keyboard
I couldn't see any option on Graphene to disable keyboard buttons on navigation bar. These appear whenever a keyboard is in focus. The button on the left is used to minimize keyboard. The button on the right is used to change input method.