The idea is to place all the yellow keys into the red locks. There is at least one guaranteed way to do this as the locks as created from the keys and then 'blurred' by adding extra gaps. Solutions however are not (yet!) unique - I haven't figured out how to add gaps without getting more than one solution.
The full white spaces in the red locks take the yellow key bits, the half-red squares are blocked.
For example key 1 goes into locks 4 and 8.