Updated build tools version.
Move key press catching stuff into CounterFragment.