Fix waitForKey if timeout runs before the keyFree event

Need to unsubscribe to the keyFree pub in the timeout function