How do you know the location of the key is pressed

thanks for hiiii5 and veccher