Substitute form.keys with opApply