Keyboard shortcut for touchpad

So it looks like it’s the same convention “Device Enabled”.
I think the script would work for you if you just adapt it as follow:

#! /bin/bash

T=14

CURRENT_STATE=`xinput list-props $T | grep "Device Enabled" | egrep -o "[0-9]$"`

if [ $CURRENT_STATE -eq "1" ]; then
    xinput --disable $T
else
    xinput --enable $T
fi