from adafruit_circuitplayground.express import cpx
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode

kbd = Keyboard()

# You can adjust this to get the level of sensitivity you want.
cpx.adjust_touch_threshold(100)

while True:
   if cpx.touch_A4:
       kbd.send(Keycode.PERIOD)
       while cpx.touch_A4:
           pass
   elif cpx.touch_A3:
       kbd.send(Keycode.MINUS)
       while cpx.touch_A3:
           pass