A password manager (like KeePass) offers you the option to copy and paste your password (the clipboard is cleared after pasting/timeout) or to emulate a keyboard and "type" the password for the user.
What are the cases where one method is better than the other? Are there any example threat models where using one of those methods should be preferred?