Add implemenation for arrow keys handler with abstraction.