Changed blur event to keydown