How do touch screens know if you touch the screen?

There is a system and when your finger or something hits it like a tap it will feel it and it works