I don't like how this is called setKeys, but it actually generates/creates keys.