keyboard.js: only check if string commands are prefix commands