if app.DIK_RETURN == key: self.OnPressEscapeKey() if app.DIK_RETURN == key: focusBtn.CallEvent()