I log into my mac via “screen sharing” when it is in a locked state. I need to type my password to unlock it.
But I cannot type in numbers. When I type a number nothing is happening. When I copy-paste a number from my local machine, it does not work either.
Does anyone have an idea how to log in?

You must
log in to answer this question.