Reading swipe direction(left,up,down,right)

is there something similar to key (or keyCode) for Android?

There should be some good resources on detecting gestures on this web page

https://developer.android.com/training/gestures/detector

If that doesn’t work, a simple and brute force solution would be to just store the previous touch events and decide what the direction is based on the difference