Keys.onReturnPressed: {
for(index = 0; index < tab.length; index++)
{
dX = rect.x >= tab[index].x
cX = rect.x <= tab[index].x + tab[index].width - rect.width
dY = rect.y >= tab[index].y
cY = rect.y <= tab[index].y + tab[index].height - rect.height
if(dX && cX && dY && cY)
{
point += tabPoint[index]
break
}

else {
dX = false
cX = false
dY = false
cY = false
}
}
}