I think your post could be misleading. Iirc there are three categories, drinks, food and milk-stuff. So you can absolutely compare frozen pizza with hummus, and maybe the frozen pizza has more protein and the hummus more fat.
The algorithm is on Wikipedia
Ps: I might also be wrong, but this is how I remember :)
I have such a keyboard since >4 years (Dell iirc)