Setup connection for key listener