key wait handled