Scammers can steal your passwords if they have access to your clipboard. To prevent this, you can deny website access to your clipboard in your web browser settings.
Chrome: Go to settings > privacy and security > site settings > permissions > expand additional permissions (at the bottom) > clipboard
Firefox: Blocks this by default