20.04 – I cant type my password for anything that Ubuntu ask for

I cant type my password when Ubuntu asks for it. I cant login to my PC without having to click Ctrl+Alt+F1. i cant authenticate. It wont let me type it in. And i haven’t done anything for it to happen all i did was was let it go inactive, then when i got back it wouldn’t let me do any thing and just froze on the screen with the time on it and i had to press Ctrl+Alt+F1 to login.