analysis range: fix use of keys.remove

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>