When you’re using the Pencil tool and you need to smooth your path, hold down the Alt key (Windows) or Option (Mac) before to start to click and drag. This temporarily activates the Smooth tool. When you’re happy with the smooth stroke you’ve created, then simply release the key to return to normal drawing mode.