Added method to show/hide the software keyboard