Basic yet essential , Sample code to hide keyboard on background tap.