Dismiss IME on Back

Only applies when the virtual keyboard is visible.
This is in line with how other IMEs are handled;
the first back should dismiss the keyboard without
passing the back button press to the app
underneath.