New keyboard listener and mesures structure