keyPressed accept now a list of parameters instead of a table