ROOT USERS ONLY!!! For non-rooted devices, use Keyboard Manager Plus: https://play.google.com/store/apps/details?id=com.ne0fhykLabs.android.utility.kmplus
It allows to configure a keyboard per-app, and per docking state.It also lets you customize which keyboard to use based on your device configuration.
NOTE:- this application shows to the android system as an accessibility service. To ENABLE it, go to 'Settings' -> 'Accessibility' -> 'Keyboard Manager Extras', and switch the toggle to 'ON'.
- this application requires Keyboard Manager version 2.6 or higher to work.
VERSION HISTORY
- Version 2.7 posted on 2013-09-11
- Version 2.5 posted on 2013-02-25
Several fixes and updates