Hello Phil, this is Emily.
Sounds like Stan is having quite some fun with your keyboard! :)
I agree - you want to avoid hard shutdown as much as you can to prevent corrupting your OS.
I took a quick look at this Dell model. It looks like it has the IR camera, so you can set up Hello Face as an alternative for your sign in. I can't tell if this model has finger reader - that's another option.
Curious - on the lock screen, do you see Ease of Access option , if so you can click on that to launch on-screen keyboard.
One more option you can try when this happens is holding down the right shift key for 8 seconds until you hear a beep.. then see if the keyboard works.