small bug fix in keys command