keyboard: ks is a bad variable name