Add keyboard and mouseclick events