Touch feedback

Is it possible to have some sort of feedback to determine whether I just can’t touch the lock in right way or am I trying the wrong key?
Currently the lock doesn’t open sometimes and I have no idea why.