Added key and mouse listeners