Disable Touchpad while typing not working

I run Manjaro-Sway on pinebook pro en tried the firmware update. The firmware updates, but the problem persists. The other options work, but disabling while typing does not. Quite frustrating. Any ideas?

input "type:touchpad" {
    tap enabled
    natural_scroll disabled
    accel_profile adaptive
    dwt enabled
    pointer_accel 0.6 # set mouse sensitivity (between -1 and 1)
}