A class to read the direction key input