Added keyboard and mouse control