Role Based Authentication With Multiple Client in one Realm

I am very confused. If you could help me, it would be greatly appreciated. I have created a realm in Keycloak and added 2 clients to it. I want user1, who has a role in client1, not to be able to log in to the application of client2, and vice versa.