Added key listener and mouse listener methodes