checking the key