kbd: use a better get_key method