I found out a method of detecting arrow keys in one thread i found. It's that after getting the ascii value from arrow keys of 224, there is another value in the buffer, so all i havta do is run getch() again and i'll get the different values for different arrow keys.
But i read in some threads that:
left arrow = 'K'
up arrow = 'H'
down arrow = 'P'
right arrow = 'M'
Whys that? It doesn't even work for me.