case event.kind: ... of K_q (event.key.keysym.modstate and KMOD_LCTRL): echo "QUIT!" ...