Kaspersky app has the following known issues and possible solutions on HTC devices:
Due to certain firmware features of HTC devices, issues may arise while entering a password using any layouts but the English one.
Language switch does not work in the password field. The issue is known to occur on HTC M8.
To enter a password in a non-English layout, use one of the following options: