Cleaned up keyboard dismissal method