kasp test: Fix key id 0000 lookup
When checking keys we search for keys by key id. The kasp test used key id 0 as an indicator that a key was not yet found.
Introduce a new key parameter 'FOUND' to keep track if a key is found, and treat key 0 as a valid key id in the checks.
Closes #1589 (closed)
Edited by Matthijs Mekking