scanning for all types of keys