Is there any way I could bypass a locked screen without losing my data, my screen broke and I can't touch the letters. And if it helps its HTC M8.
If your screen is partially available, have you tried rotating the phone? Perhaps it can make part of your keyboard reachable.