Solved.

I used getch(); and it worked