Fully implemented kpassckey;attached signal and slot mechanism to detect bad key input