Use direction keys like 'DoubleUp' instead of codes like 1

This will prevent bugs and make the code more readable, it will also make the community maintained pebble app compatable with the endpoint used by Rajat's users