API: Fix GET_KEY, closes #599