Hide keyboard whenever focus is brought away from it