Changed hide on focus to keydown