Your keyboard may malfunction if something’s stuck on the screen. Often times, this will be food residue - you eat something with your hands, then pick up your iPhone. When you start using your iPhone, some of the food you were just eating gets stuck to the display, tricking your iPhone into thinking that you’re tapping the screen.