Implement keyboard manager as a stack.

Bindings can be temporary changed and later restored.
Add tests for keyboard manager push/pop.
Fix activity chooser selected item display when using keyboard.