Added control for directional keys

Added control for keys and added each input to an arraylist