Added event handling to hide/show the tab bar when the keyboard is shown/hidden.